Class SimulatedDeviceLifecycleManager
A component which handles the lifecycle of simulated HMDs, controllers, and hands. It deals with the adding and removing of devices, keeping track of the current device mode, and initializing subsystems for simulation.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("XR/Debug/Simulated Device Lifecycle Manager", 11)]
[DefaultExecutionOrder(-29995)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.2/api/UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation.SimulatedDeviceLifecycleManager.html")]
public class SimulatedDeviceLifecycleManager : MonoBehaviour
Properties
deviceMode
Whether the simulator is in controller mode or tracked hand mode.
Declaration
public SimulatedDeviceLifecycleManager.DeviceMode deviceMode { get; }
Property Value
Type | Description |
---|---|
SimulatedDeviceLifecycleManager.DeviceMode |
See Also
handTrackingCapability
Whether to create a simulated Hand Tracking Subsystem and provider on startup. Requires the XR Hands package.
Declaration
public bool handTrackingCapability { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
instance
The runtime instance of the Simulated Device Lifecycle Manager.
Declaration
public static SimulatedDeviceLifecycleManager instance { get; }
Property Value
Type | Description |
---|---|
SimulatedDeviceLifecycleManager |
See Also
removeOtherHMDDevices
This boolean value indicates whether we remove other UnityEngine.InputSystem.XR.XRHMD devices in this session so that they don't conflict with the simulated devices. A true value (default) means we remove all other UnityEngine.InputSystem.XR.XRHMD devices except the XRSimulatedHMD generated by the simulator. A false value means we do not remove any other UnityEngine.InputSystem.XR.XRHMD devices.
Declaration
public bool removeOtherHMDDevices { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
Methods
Awake()
See MonoBehaviour.
Declaration
protected virtual void Awake()
See Also
OnDestroy()
See MonoBehaviour.
Declaration
protected virtual void OnDestroy()
See Also
OnDisable()
See MonoBehaviour.
Declaration
protected virtual void OnDisable()
See Also
OnEnable()
See MonoBehaviour.
Declaration
protected virtual void OnEnable()
See Also
Update()
See MonoBehaviour.
Declaration
protected virtual void Update()