Attributes

Table of Content

Table of Content

Table of Content

Enum Button

Display the Enum as horizontal buttons

Do not display the variable name; take one parameter as bool to display the variable name

using MVsToolkit.Dev



[EnumButton] public WeaponType type;
[EnumButton(true)] public WeaponType _type

public enum WeaponType
{
  Melee,
  Range
}

Require namespace MVsToolkit.Dev

Only allow enum variables

Create a free website with Framer, the website builder loved by startups, designers and agencies.