Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetTrackingSpaceType(TrackingSpaceType)

Sets the device's current TrackingSpaceType. Returns true on success. Returns false if the given TrackingSpaceType is not supported or the device fails to switch.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
Warning
Removed. XRDevice.SetTrackingSpaceType is deprecated, and should no longer be used. Please use XRInputSubsystem.TrySetTrackingOriginMode.
public static bool SetTrackingSpaceType(TrackingSpaceType trackingSpaceType)

Parameters

trackingSpaceType

Returns

Type

Description

boolTrue on success. False if the given TrackingSpaceType is not supported or the device fails to switch.