| Namespace: | Sirenix.OdinInspector |
| Assembly: | Sirenix.OdinInspector.Attributes |
public class UnitAttribute : Attribute, _Attribute
public UnitAttribute(Units unit)
| Units | unit | The unit of underlying value. |
public UnitAttribute(Units base, string display)
| Units | base | The unit of underlying value. |
| System.String | display | The unit to display the value as in the inspector. |
public UnitAttribute(string unit)
| System.String | unit | The name of the underlying value. |
public UnitAttribute(string base, Units display)
| System.String | base | The unit of underlying value. |
| Units | display | The unit to display the value as in the inspector. |
public UnitAttribute(string base, string display)
| System.String | base | The unit of underlying value. |
| System.String | display | The unit to display the value as in the inspector. |
public Units Base
public string BaseName
public Units Display
true the number field is drawn as read-only text.
public bool DisplayAsString
public string DisplayName
true disables the option to change display unit with the right-click context menu.
public bool ForceDisplayUnit