TrySetTrackingOriginMode(TrackingOriginModeFlags)
Attempts to set the TrackingOriginModeFlags of the subsystem.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
public bool TrySetTrackingOriginMode(TrackingOriginModeFlags origin)
Parameters
The new TrackingOriginModeFlags that you'd like to change to.
Returns
Type | Description |
|---|---|
| bool | True if the method changes the origin. Returns false otherwise. |
Remarks
See XRInputSubsystem.GetSupportedTrackingOriginModes in order to see what modes this individual XRInputSubsystem supports, and XRInputSubsystem.GetTrackingOriginMode to see the current mode.