Skip to main content

DeviceControllerFactory

A static class in Root.Township, the global namespace.

Creates the XR device controller for a player mode (fly cam, auto cam, OpenXR, SteamVR). Called by PlatformDriver when the mode changes.

Methods​

MemberWhat it is
static IXrDeviceSdkController Create(PlayerMode mode)Returns the device controller for the mode; throws for an unknown mode.
2 private and internal methods
MemberWhat it is
private static IXrDeviceSdkController GetAndroidController()Throws NotSupportedException; there is no Quest or Pico controller in this build.
private static IXrDeviceSdkController GetSteamVRController()Returns a new SteamVRDeviceController.