XROriginController Class¶
Description¶
MonoBehaviour which controls the XROrigin in the scene.
The XROrigin is a virtual node, representing the relative node when the camera moves in a motion tracking system. It will be automatically generated to be the origin of the global coordinate system when needed if not manually set in the scene.
Enums¶
public enum XROriginController.ActiveControlStrategy |
Strategy to control the GameObject .active. |
MonoBehaviour Messages¶
private void Awake() |
private void Start() |
private void OnDestroy() |
Fields¶
ActiveControl¶
- C#
public XROriginController.ActiveControlStrategy ActiveControl
Strategy to control the GameObject .active. If you are willing to control GameObject .active or there are other components controlling GameObject .active, make sure to set it to XROriginController.ActiveControlStrategy.None .
Properties¶
TrackingStatus¶
- C#
public MotionTrackingStatus TrackingStatus { get; }
Motion tracking status at the moment.
Events¶
TrackingStatusChanged¶
- C#
public event Action< MotionTrackingStatus > TrackingStatusChanged
Motion tracking status change event.