Version 2.1.0.0

Odin has a dedicated attribute overview with examples

EnumPagingAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
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()