Method HitStackTopAt
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
HitStackTopAt(Vector2)
The element that would really receive a click at this point: the last pickable, visible element containing it in tree order (UI Toolkit paints in tree order, so later is on top).
Use it as a precondition before clicking - a panel renders a frame after it is shown, so an element can already be "visible" while a click still lands on whatever sits above it.
public static VisualElement HitStackTopAt(Vector2 pos)
Parameters
posVector2