documentation

 
Loading...
Searching...
No Matches
Visometry.Helpers.OnlyShowIfAttribute Class Reference

Add the [OnlyShowIf("fieldToCheck")] Attribute above a public parameter to only show the parameter in the Inspector, if the bool value of "fieldToCheck" is true. More...

Inherits PropertyAttribute.

Public Member Functions

 OnlyShowIfAttribute (string fieldToCheck, bool showOnValue)
 

Data Fields

readonly string fieldToCheck
 
readonly bool showOnValue
 

Detailed Description

Add the [OnlyShowIf("fieldToCheck")] Attribute above a public parameter to only show the parameter in the Inspector, if the bool value of "fieldToCheck" is true.