PickAll(Vector2, List<VisualElement>)
Finds all VisualElements overlapping the provided point.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
VisualElement PickAll(Vector2 point, List<VisualElement> picked)
Parameters
Coordinates in panel space.
If not null, the list is cleared and filled with all VisualElements that overlap the specified point.
Returns
Type | Description |
|---|---|
| VisualElement | The top-most VisualElement overlapping the provided point. Null if none was found. |
Remarks
It doesn't return the following:
- Invisible elements
- Elements with display style set to DisplayStyle.None
- Elements with pickingMode set to PickingMode.Ignore