Version 2.1.0.0

Odin has a dedicated attribute overview with examples

TitleGroupAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public sealed class TitleGroupAttribute : PropertyGroupAttribute, _Attribute
Groups properties vertically together with a title, an optional subtitle, and an optional horizontal line.
Inheritance

Constructors

TitleGroupAttribute(String, String, TitleAlignments, Boolean, Boolean, Boolean, Int32)
Groups properties vertically together with a title, an optional subtitle, and an optional horizontal line.
public TitleGroupAttribute(string title, string subtitle = null, TitleAlignments alignment = TitleAlignments.Left, bool horizontalLine = true, bool boldTitle = true, bool indent = false, int order = 0)
Parameters
System.String title

The title-

System.String subtitle

Optional subtitle.

TitleAlignments alignment

The text alignment.

System.Boolean horizontalLine

Horizontal line.

System.Boolean boldTitle

Bold text.

System.Boolean indent

Whether or not to indent all group members.

System.Int32 order

The group order.

Fields

Alignment
Title alignment.
public TitleAlignments Alignment
BoldTitle
If true the title will be displayed with a bold font.
public bool BoldTitle
HorizontalLine
Gets a value indicating whether or not to draw a horizontal line below the title.
public bool HorizontalLine
Indent
Gets a value indicating whether or not to indent all group members.
public bool Indent
Subtitle
Optional subtitle.
public string Subtitle

Methods

CombineValuesWith(PropertyGroupAttribute)
Combines TitleGroup attributes.
protected override void CombineValuesWith(PropertyGroupAttribute other)
Parameters
PropertyGroupAttribute other

The other group attribute to combine with.