Odin has a dedicated attribute overview with examples

IndentAttribute 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 IndentAttribute : Attribute, _Attribute

Indent is used on any property and moves the property's label to the right.

Use this to clearly organize properties in the inspector.

  • System.Object
  • System.Attribute
  • IndentAttribute

The following example shows how a property is indented by Indent.

public class MyComponent : MonoBehaviour
	public int IndentedInt;


Indents a property in the inspector.
public IndentAttribute(int indentLevel = 1)
System.Int32 indentLevel

How much a property should be indented.


Indicates how much a property should be indented.
public int IndentLevel

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.