文档

Unity Engine

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.VRModule
警告
Deprecated. This is obsolete, 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.