Class in ChivalrousGames.Common.Inspector / Inherits from PropertyDecorator


Hides a field in the inspector based on another field’s boolean value. The decorator expects 1 string param containing the source (with boolean value) field name. You can also pass an optional boolean parameter as “true” to reverse the condition.

Usage Example

public bool doNotUse;

[DecoratedProperty(typeof(HideBooleanPropertyDecorator), "doNotUse", true)]
public DungeonConnectorPointConfig selectedConfig;
//In this example, the "selectedConfig" field will show up in the inspector when field "doNotUse" has value "false"