Function pointerSelection
-
Parameters
- options: XrPointerOptions = {}
Pointer appearance + hover/select callbacks (see XrPointerOptions).
Returns XrFeatureSpec
- options: XrPointerOptions = {}
Pointer appearance + hover/select callbacks (see XrPointerOptions).
Controller pointer-selection as an opt-in XrFeatureSpec (Babylon.js
POINTER_SELECTION). Pass it toenterXr({ features: [pointerSelection(...)] })and the session creates the laser/cursor visuals, casts each tracked ray per frame, and disposes everything on exit — no manualonFrame/onEndwiring.Requires input tracking (do not pass
input: falseto enterXr); it needs no native WebXR session feature.