InputEnableIf/InputDisableIf/InputReadOnlyLike EnableIf/DisableIf, but it only disable the input fields.
Useful if you want to combine it with PrefixToggle, AboveButton, BeblowButton so these control will not get disabled together.
It shares exactly the same syntax as EnableIf/DisableIf
Example of only disable the field
using SaintsField; public bool disableMe; [InputDisableIf(nameof(disableMe))] [AboveButton(":Debug.Log")] [BelowButton(":Debug.Log")] [PostFieldButton(":Debug.Log", "L")] [PrefixToggle(nameof(useHp))] public int myField;
work with PrefixToggle:
using SaintsField; // Example: useful with `InputEnableIf`, `InputDisableIf` to control field edit [HideIf(true)] public bool useHp; // only allow to edit if it's checked [PrefixToggle(nameof(useHp)), InputEnableIf(nameof(useHp)), Range(0, 100)] public int hpValue;