class MAGES::SceneGraph::EnableIfAttribute¶
Overview¶
Used in MAGES.SceneGraph.Editor.VisualizerPropertyField. More…
class EnableIfAttribute: public System.Attribute { public: // properties string[] PropertyPath; // methods EnableIfAttribute(string propertyName, bool evaluate = true); bool IsApplicable(bool value); };
Detailed Documentation¶
Used in MAGES.SceneGraph.Editor.VisualizerPropertyField.
Properties¶
string[] PropertyPath
Gets the property path to the property to test.
Methods¶
EnableIfAttribute(string propertyName, bool evaluate = true)
Initializes a new instance of the EnableIfAttribute class.
Parameters:
propertyName |
The property name to test. |
evaluate |
The bool value to compare against. |
bool IsApplicable(bool value)
Test the value.
Parameters:
value |
The current state of the referenced property field. |
Returns:
Whether or not it’s applicable.