mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 16:28:25 -05:00
642 B
642 B
Disable If Attribute
If the boolean value of the target member is true, the field becomes disabled.
public bool isDisabled;
public bool IsDisabled => isDisabled;
public bool IsDisabledMethod() => isDisabled;
[DisableIf("isDisabled")]
public int disableIfField;
[DisableIf("IsDisabled")]
public int disableIfProperty;
[DisableIf("IsDisabledMethod")]
public int disableIfMethod;
Parameter | Description |
---|---|
Condition | The name of the field, property, or method used for condition evaluation. |