ReadOnlyBooleanPropertyDecorator

Class in ChivalrousGames.Common.Inspector / Inherits from PropertyDecorator

Description

Add read only functionality to a PropertyDrawer with a boolean field. 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 randomSpawnSeed;

[DecoratedProperty(typeof(ReadOnlyBooleanPropertyDecorator), "randomSpawnSeed")]
public string spawnSeed;