Version 3.3.0.1

Odin has a dedicated attribute overview with examples

EnumPagingAttribute 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 = 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.

Inheritance
  • System.Object
  • System.Attribute
  • EnumPagingAttribute
Example
public enum MyEnum
{
    One,
    Two,
    Three,
}

public class MyMonoBehaviour : MonoBehaviour
{
    [EnumPaging]
    public MyEnum Value;
}
See Also
  • System.Attribute

Constructors

EnumPagingAttribute()
public EnumPagingAttribute()