Appearance
scene.tracking
scene.tracking.hands
active read-only
- Type: boolean
- Provider authorized and running – the "tracking live" signal, distinct from a hand being in view. Flips false if permission is revoked or tracking is lost; poll this to observe loss after a successful enable().
anchors read-only
- Type: Array<AnchorData>
- all currently tracked hand anchors.
enabled read-only
- Type: boolean
- whether this script currently requests hand tracking.
isSupported read-only
- Type: boolean
- whether this device/build can track hands (Apple Vision Pro).
left read-only
- Type: AnchorData | null
- left hand anchor, or null when not tracked.
right read-only
- Type: AnchorData | null
- right hand anchor, or null when not tracked.
disable()
javascript
scene.tracking.hands.disable(): voidDrop this script's hand-tracking request. Fire-and-forget.
Returns: void
enable()
javascript
scene.tracking.hands.enable(): Promise<void>Opt into hand tracking. Idempotent. Resolves when tracking is live (provider running + authorized); rejects if denied or unsupported. Currently Apple Vision Pro only – gate with environment.features.has('handTracking').
Returns: Promise<void>
scene.tracking.face
active read-only
- Type: boolean
- true when a face is currently tracked (a face context is active).
current read-only
- Type: AnchorData | null
- current face anchor (blendshapes, eye transforms), or null.
isSupported read-only
- Type: boolean
- whether the scene can deliver face tracking data.