Class VisibleIfAttribute
Shows property/field in the editor only if the specified member has a given value. Can be used to hide properties based on other properties (also private properties). The given member has to be bool type. Multiple VisibleIf attributes can be added for additional conditions to be met.
Inheritance
System.Object
VisibleIfAttribute
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class VisibleIfAttribute : Attribute
Constructors
VisibleIfAttribute(String, Boolean)
Initializes a new instance of the VisibleIfAttribute class.
Declaration
public VisibleIfAttribute(string memberName, bool invert = false)
Parameters
System.String
memberName
The name of the field or property of the object. Must be a bool type. |
System.Boolean
invert
True if invert member value when computing the visibility value. |
Fields
Invert
True if invert member value when computing the visibility value.
Declaration
public bool Invert
Field Value
System.Boolean
|
MemberName
The member name.
Declaration
public string MemberName
Field Value
System.String
|
Extension Methods
See Also
System.Attribute