canGrabFocus
Whether the element can be focused.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public virtual bool canGrabFocus { get; }
Remarks
Returns true if the element meets all the following conditions:
-
It's focusable.
-
It's enabled.
-
It's visible.
-
It's display style isn't DisplayStyle.None.
-
It has a parent that delegates focus, and the parent must also meet these conditions.
For more information, refer to Focus system in UI Toolkit.
Additional Resources: _display, Focusable.Focus()