IndentAttribute

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

Use this to clearly organize properties in the inspector.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)448, AllowMultiple = True, Inherited = True)]
[DontApplyToListElementsAttribute]
public sealed class IndentAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.4.1

Constructors

Definition Description
IndentAttribute(int) Indents a property in the inspector.

Properties

Return Type Definition Description
int IndentLevel Indicates how much a property should be indented.

Example

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

public class MyComponent : MonoBehaviour
{
	[Indent]
	public int IndentedInt;
}