mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 16:28:25 -05:00
567 B
567 B
Show If Attribute
Displays in the Inspector only if the boolean value of the target member is true.
public bool show;
public bool Show => show;
public bool IsShowTrue() => show;
[ShowIf("show")]
public int showIfField;
[ShowIf("Show")]
public int showIfProperty;
[ShowIf("IsShowTrue")]
public int showIfMethod;
Parameter | Description |
---|---|
Condition | The name of the field, property, or method used for condition checking |