Class in ChivalrousGames.Common.Inspector / Inherits from PropertyAttribute


This attribute is custom made for the SingleUnityLayer class. It displays a field to select a single unity layer in the inspector with a tooltip and a hide condition. It expects 1 string parameter to display a tooltip, 1 string parameter which is the name of a boolean field to show/hide the SingleUnityLayer field and 1 boolean attribute used to reverse the hide condition.

Usage Example

public bool useMap = true;

[TooltipHideSingleUnityLayerPropertyAttribute("MyTooltip", "useMap", false)]
public SingleUnityLayer dungeonMapLayer;