Skip to main content

Function: pickInteractive()

function pickInteractive(hit: unknown): InteractiveLike | undefined;

Defined in: xrblocks-uiextensions/src/pointer-forward.ts:26

Walk up from a hit object to the nearest ancestor that can receive events and belongs to a uikit tree (identified by the dataUid UIKitML stamps into userData). Pure - testable with stub objects.

Parameters

ParameterType
hitunknown

Returns

InteractiveLike | undefined