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 = false)]
[Conditional("UNITY_EDITOR")]
public class EnumPagingAttribute : Attribute, _Attribute
Draws an enum selector in the inspector with next and previous buttons to let you cycle through the available values for the enum property.
public enum MyEnum
{
One,
Two,
Three,
}
public class MyMonoBehaviour : MonoBehaviour
{
[EnumPaging]
public MyEnum Value;
}
public EnumPagingAttribute()