Namespace: | Sirenix.OdinInspector |
Assembly: | Sirenix.OdinInspector.Attributes |
[DontApplyToListElements]
[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)]
[Conditional("UNITY_EDITOR")]
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.
The following example shows how a property is indented by Indent.
public class MyComponent : MonoBehaviour
{
[Indent]
public int IndentedInt;
}
public IndentAttribute(int indentLevel = 1)
System.Int32 | indentLevel | How much a property should be indented. |
public int IndentLevel