Pick(Vector2)
Finds the top-most VisualElement overlapping the provided point.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
VisualElement Pick(Vector2 point)
Parameters
Coordinates in panel space.
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