EnumPagingAttribute

Draws an enum selector in the inspector with next and previous buttons to let you cycle through the available values for the enum property.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)384, AllowMultiple = False)]
public class EnumPagingAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

  • Attribute

Example

public enum MyEnum
{
    One,
    Two,
    Three,
}

public class MyMonoBehaviour : MonoBehaviour
{
    [EnumPaging]
    public MyEnum Value;
}