Alchemy/docs/articles/en/attributes/show-if.md
2024-02-20 14:49:47 +09:00

567 B

Show If Attribute

Displays in the Inspector only if the boolean value of the target member is true.

img

img

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