Skip to main content

VRSetup

A static class in Root.Township, Alta.XR.

Static VR helpers: sets every XR input subsystem to floor tracking and copies tracked pose data onto transforms. Client side.

Fields​

1 private and internal field
MemberWhat it is
private static bool needsToSetupTrue until Setup has run once.

Methods​

MemberWhat it is
static void Setup()Runs once: sets floor tracking now and again each time XR subsystems reload.
static void UpdateTransform(Transform transform, TrackedPoseDriver.TrackedPose pose)Sets a transform's local position and rotation from a tracked pose, if the pose has data.
1 private and internal method
MemberWhat it is
private static void UpdateSubsystems()Sets the tracking origin to floor on every XR input subsystem.