Class DynamicEnum
A DynamicEnum that uses a String values. This is used for making enum-like dropdowns with variable options in the Unity Editor. This can be used for example in Tool actions UIs for making them dynamic
Implements
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.Actions
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public class DynamicEnum : List<string>, IList<string>, ICollection<string>, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IList, ICollection, IEnumerable
Fields
Name | Description |
---|---|
index | The currently selected enum |
Methods
Name | Description |
---|---|
SetValues(params string[]) | All values name that should be in the dropdown |