Skip to main content

IXrDeviceSdkController

An interface in Root.Township, the global namespace.

One device SDK the game can drive the player with: SteamVR, OpenXR, the fly cam or the auto cam. The platform driver starts it and it creates the device lifecycle and per-hand input controllers. Client only.

Properties​

MemberWhat it is
bool IsProvidingPosition { get; }Whether this SDK supplies tracked head and hand positions.
PlayerMode Mode { get; }The player mode this SDK runs in.

Methods​

MemberWhat it is
DeviceInputController CreateController(PlayerInput controller)Makes the input controller for one hand.
DeviceLifecycle CreateInterface(IPlatformPlayer player, IPlatformDevice platformDevice)Makes the device lifecycle object for a player and device.
void FixedUpdate()Passes the fixed update on to the device lifecycle.
void LateUpdate()Passes the late update on to the device lifecycle.
void SetDevicePlayer(IPlatformPlayer player)Changes the platform player the device belongs to and gives each hand a new input controller.
IEnumerator StartDevice(IPlatformPlayer player, IPlatformDevice platformDevice)Coroutine that starts the SDK, creates its device lifecycle and enables it.
void StopDevice()Disables the SDK's device lifecycle.
void Update()Passes the frame update on to the device lifecycle.

Used in​

Members of other types that take, return or hold a IXrDeviceSdkController: