Creating new Enum Values
Scriptable Enum
Last updated
Scriptable Enum
Last updated
With ScriptableEnums, there is no need to modify the code; you can simply create a new asset, and that's it. For example, if we want to define element types, we can just create a new ScriptableObject that will represent that type. For example, let’s create a ScriptableEnums representing an element type. We inherit from ScriptableEnumBase, as this provides us with convenient features and custom inspector available to all Soap scriptable objects. (Note that this is optional and does not prevent you from using SO as enums).