文档

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
警告
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.