Table of Contents

Method HasGeometry

Namespace
GrindFest
Assembly
GrindFest.dll

HasGeometry(VisualElement)

Does this element have a real rect on screen yet?

This is the difference between "the element is in the tree" and "a player can hit it": a freshly shown panel reports a zero-size worldBound until the next layout pass, and since UI Toolkit hit-tests pointer events by POSITION, a click aimed at such an element lands on whatever happens to sit at (0,0) instead - a silent no-op that looks like a broken control.

public static bool HasGeometry(VisualElement ve)

Parameters

ve VisualElement

Returns

bool