Version 2.1.0.0

ValueDropdownList<T> class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
public class ValueDropdownList<T> : List<ValueDropdownItem<T>>, IList<ValueDropdownItem<T>>, ICollection<ValueDropdownItem<T>>, IList, ICollection, IReadOnlyList<ValueDropdownItem<T>>, IReadOnlyCollection<ValueDropdownItem<T>>, IEnumerable<ValueDropdownItem<T>>, IEnumerable
Use this with ValueDropdownAttribute to specify custom names for values.
Inheritance
  • System.Object
  • System.Collections.Generic.List<ValueDropdownItem<T>>
  • ValueDropdownList<T>

Type Parameters

T

The type of the value.

Constructors

ValueDropdownList()
public ValueDropdownList()

Methods

Add(T)
Adds the specified value.
public void Add(T value)
Parameters
T value

The value.

Add(String, T)
Adds the specified value with a custom name.
public void Add(string text, T value)
Parameters
System.String text

The name of the item.

T value

The value.

Extension Methods