Marks a field as optional. In Unity, the path passed will serve as the toggle to enable/disable. More...
Public Member Functions | |
OptionalAttribute (string enabledPropertyPath) | |
Initializes a new instance of the OptionalAttribute class. More... | |
Properties | |
string | EnabledPropertyPath [get] |
Gets the path to the property that serves as the toggle to enable/disable. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Quantum.DecoratingPropertyAttribute | |
const int | DefaultOrder = -10000 |
The default order of the attribute. More... | |
Protected Member Functions inherited from Quantum.DecoratingPropertyAttribute | |
DecoratingPropertyAttribute () | |
Initializes a new instance with the default order. More... | |
DecoratingPropertyAttribute (int order) | |
Initializes a new instance with the specified order. More... | |
Marks a field as optional. In Unity, the path passed will serve as the toggle to enable/disable.
|
inline |
Initializes a new instance of the OptionalAttribute class.
enabledPropertyPath | The path to the property that serves as the toggle to enable/disable. |
|
get |
Gets the path to the property that serves as the toggle to enable/disable.