Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TrySetTrackingOriginMode(TrackingOriginModeFlags)

Attempts to set the TrackingOriginModeFlags of the subsystem.
Read time 1 minuteLast updated 4 days ago

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

boolTrue 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.