Language
Edit

DrawIfAttribute(String, Object, DrawIfAttribute+ComparisonType) Constructor

Definition

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.

Applies to