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()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.