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 |
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.