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
Inheritance
System.Object
    System.Collections.Generic.List<System.String>
    DynamicEnum
  Implements
System.Collections.Generic.IList<System.String>
    System.Collections.Generic.ICollection<System.String>
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.Generic.IReadOnlyList<System.String>
    System.Collections.Generic.IReadOnlyCollection<System.String>
    System.Collections.Generic.IEnumerable<System.String>
    System.Collections.IEnumerable
  Inherited Members
      System.Collections.Generic.List<System.String>.System.Collections.IList.get_Item(System.Int32)
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.set_Item(System.Int32, System.Object)
    
    
      System.Collections.Generic.List<System.String>.Add(System.String)
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.Add(System.Object)
    
    
      System.Collections.Generic.List<System.String>.AddRange(System.Collections.Generic.IEnumerable<System.String>)
    
    
      System.Collections.Generic.List<System.String>.AsReadOnly()
    
    
      System.Collections.Generic.List<System.String>.BinarySearch(System.Int32, System.Int32, System.String, System.Collections.Generic.IComparer<System.String>)
    
    
      System.Collections.Generic.List<System.String>.BinarySearch(System.String)
    
    
      System.Collections.Generic.List<System.String>.BinarySearch(System.String, System.Collections.Generic.IComparer<System.String>)
    
    
      System.Collections.Generic.List<System.String>.Clear()
    
    
      System.Collections.Generic.List<System.String>.Contains(System.String)
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.Contains(System.Object)
    
    
      System.Collections.Generic.List<System.String>.ConvertAll<TOutput>(System.Converter<System.String, TOutput>)
    
    
      System.Collections.Generic.List<System.String>.CopyTo(System.String[])
    
    
      System.Collections.Generic.List<System.String>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.CopyTo(System.Int32, System.String[], System.Int32, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.CopyTo(System.String[], System.Int32)
    
    
      System.Collections.Generic.List<System.String>.Exists(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.Find(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindAll(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindIndex(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindIndex(System.Int32, System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindIndex(System.Int32, System.Int32, System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindLast(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindLastIndex(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindLastIndex(System.Int32, System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.FindLastIndex(System.Int32, System.Int32, System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.ForEach(System.Action<System.String>)
    
    
      System.Collections.Generic.List<System.String>.GetEnumerator()
    
    
      System.Collections.Generic.List<System.String>.System.Collections.Generic.IEnumerable<System.String>.GetEnumerator()
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IEnumerable.GetEnumerator()
    
    
      System.Collections.Generic.List<System.String>.GetRange(System.Int32, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.IndexOf(System.String)
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.IndexOf(System.Object)
    
    
      System.Collections.Generic.List<System.String>.IndexOf(System.String, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.IndexOf(System.String, System.Int32, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.Insert(System.Int32, System.String)
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.Insert(System.Int32, System.Object)
    
    
      System.Collections.Generic.List<System.String>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<System.String>)
    
    
      System.Collections.Generic.List<System.String>.LastIndexOf(System.String)
    
    
      System.Collections.Generic.List<System.String>.LastIndexOf(System.String, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.LastIndexOf(System.String, System.Int32, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.Remove(System.String)
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.Remove(System.Object)
    
    
      System.Collections.Generic.List<System.String>.RemoveAll(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.RemoveAt(System.Int32)
    
    
      System.Collections.Generic.List<System.String>.RemoveRange(System.Int32, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.Reverse()
    
    
      System.Collections.Generic.List<System.String>.Reverse(System.Int32, System.Int32)
    
    
      System.Collections.Generic.List<System.String>.Sort()
    
    
      System.Collections.Generic.List<System.String>.Sort(System.Collections.Generic.IComparer<System.String>)
    
    
      System.Collections.Generic.List<System.String>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<System.String>)
    
    
      System.Collections.Generic.List<System.String>.Sort(System.Comparison<System.String>)
    
    
      System.Collections.Generic.List<System.String>.ToArray()
    
    
      System.Collections.Generic.List<System.String>.TrimExcess()
    
    
      System.Collections.Generic.List<System.String>.TrueForAll(System.Predicate<System.String>)
    
    
      System.Collections.Generic.List<System.String>.Capacity
    
    
      System.Collections.Generic.List<System.String>.Count
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.IsFixedSize
    
    
      System.Collections.Generic.List<System.String>.System.Collections.Generic.ICollection<System.String>.IsReadOnly
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.IsReadOnly
    
    
      System.Collections.Generic.List<System.String>.System.Collections.ICollection.IsSynchronized
    
    
      System.Collections.Generic.List<System.String>.System.Collections.ICollection.SyncRoot
    
    
      System.Collections.Generic.List<System.String>.Item[System.Int32]
    
    
      System.Collections.Generic.List<System.String>.System.Collections.IList.Item[System.Int32]
    
    
      System.Object.ToString()
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
  Namespace: PiXYZ.Utils
Assembly: cs.temp.dll.dll
Syntax
public class DynamicEnum : List<string>, IList<string>, ICollection<string>, IList, ICollection, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable
  Fields
index
Declaration
public int index
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
setValues(String[])
Declaration
public void setValues(params string[] values)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | values | 
Implements
      System.Collections.Generic.IList<T>
  
  
      System.Collections.Generic.ICollection<T>
  
  
      System.Collections.IList
  
  
      System.Collections.ICollection
  
  
      System.Collections.Generic.IReadOnlyList<T>
  
  
      System.Collections.Generic.IReadOnlyCollection<T>
  
  
      System.Collections.Generic.IEnumerable<T>
  
  
      System.Collections.IEnumerable