Visibility attributes (ShowIf, HideIf, etc.) are ignored by RequiredAttribute (and other validation features).

Issue #566 new
nick martel created an issue
[SerializeField, ShowIf("_foo"), Required] private ScriptableObject _requiredNoMatterWhat; // Validation will still apply to this field.
private bool _foo = false;

Comments (0)

  1. Log in to comment