Class in ChivalrousGames.Common.Inspector / Inherits from PropertyDecorator


Hides a field in the inspector based on another field’s enum value. The decorator expects expects 1 string param containing the source field name and 1 or more string parameters that are the enum values that will cause this field to hide.

Usage Example

public ConnectorPosition position;

[DecoratedProperty(typeof(HideEnumPropertyDecorator), "position", "Random")]
public int peripheryTolerance;
//In this example, the field "peripheryTolerance" will be hidden in the inspector when the value of field "position" is the enum value "Random".