Version 2.1.0.0

ValueDropdownItem<T> struct

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
public struct ValueDropdownItem<T> : IValueDropdownItem

Type Parameters

T

Constructors

ValueDropdownItem(String, T)
Initializes a new instance of the ValueDropdownItem<T> class.
public ValueDropdownItem(string text, T value)
Parameters
System.String text

The text to display for the dropdown item.

T value

The value for the dropdown item.

Fields

Text
The name of the item.
public string Text
Value
The value of the item.
public T Value

Methods

ToString()
The name of this item.
public override string ToString()
Returns
System.String

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.