DrawIfAttribute(String, Object, DrawIfAttribute+ComparisonType) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Only draws the field only if the provided property's boolValue matches the compared value.
public DrawIfAttribute(string comparedPropertyName, object compareAgainst = default, MixedReality.Toolkit.DrawIfAttribute.ComparisonType comparisonMode = MixedReality.Toolkit.DrawIfAttribute+ComparisonType.Equal);
new MixedReality.Toolkit.DrawIfAttribute : string * obj * MixedReality.Toolkit.DrawIfAttribute.ComparisonType -> MixedReality.Toolkit.DrawIfAttribute
Public Sub New (comparedPropertyName As String, Optional compareAgainst As Object = Nothing, Optional comparisonMode As DrawIfAttribute.ComparisonType = MixedReality.Toolkit.DrawIfAttribute+ComparisonType.Equal)
Parameters
- comparedPropertyName
- String
The name of the property that is being compared (case sensitive).
- compareAgainst
- Object
The value the property is being compared to.
- comparisonMode
- DrawIfAttribute.ComparisonType
Whether to check equality or inequality.