Class in ChivalrousGames.Common.Inspector / Inherits from PropertyDecorator


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

Usage Example

public ConnectorLock Lock;

[DecoratedProperty(typeof(HideNullReferencePropertyDecorator), "Lock")]
public DirectionalGameObjects lockedMapObjects;
//In this example, the "lockedMapObjects" field will show up in the inspector when field "Lock" has a value.