Add `EnableIf` and `DisableIf` attributes
Closed this issue · 0 comments
DarkRewar commented
Like the IfAttribute
worked, create a ConditionalAttribute
that makes the field disabled or enabled depending on the expression.
public bool IsStrong = true;
[EnableIf(nameof(IsStrong))]
public float Strength = 10f;