Indent
[Indent]
attribute allow to change indent level of property.
Support Types
Any types.
Parameters
Name | Description |
---|---|
Level |
Indent level of the field. |
Following |
Add current indent level for all following properties. If some following property has [Indent] attribute, Following will be ignored for it. |
Examples
[Indent(1)]
public float floatValue;
[Indent(2)]
public int intValue;
Note
Make sure that you have added ApexInspector namespace in your script, to get access to all attributes.
using ApexInspector;
Demo
using ApexInspector;
using UnityEngine;
public class ExampleComponent : MonoBehaviour
{
public float value1;
[Indent(1)]
public int value2;
[Indent(2)]
public int value3;
}
Static demo