Gist 3ea286941ac2e64f1214744f80b99beb
✓ Published0🌍 Public
Aandybak
Last edited Oct 2, 2019
Created on Oct 2, 2019
This example demonstrates a VR player controller that manages a timeline-driven animation sequence. It uses Unity’s PlayableDirector to play and pause a timeline, while calibrating the player’s position based on XR headset tracking via UnityEngine.XR. The script checks XRDevice.userPresence to automatically start the timeline when a headset is worn, and rewinds it when removed. It also supports manual control through the Submit input button, toggling between rewind-and-pause and rewind-and-play states.
AI-generated description