XROriginChildController Class

Description

MonoBehaviour which acts as root of objects under XROrigin need to be controlled in the scene. It will be automatically generated when needed if not manually set 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 selected or created automatically. XROrigin of Unity XR framework will be used if it exist.


Enums

public enum XROriginChildController.ActiveControlStrategy

Strategy to control the GameObject .activeSelf.


MonoBehaviour Messages

private void Awake()

private void Start()

private void OnDestroy()


Fields

ActiveControl

C#

public XROriginChildController.ActiveControlStrategy ActiveControl

Strategy to control the GameObject .activeSelf. If you are willing to control GameObject .activeSelf or there are other components controlling GameObject .activeSelf, make sure to set it to XROriginChildController.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.