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.1/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 |
---|---|
Simulated |
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 |
---|---|
Simulated |
See Also
removeOtherHMDDevices
This boolean value indicates whether we remove other XRHMD devices in this session so that they don't conflict with the simulated devices.
A true value (default) means we remove all other XRHMD devices except the XRSimulated
Declaration
public bool removeOtherHMDDevices { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
Methods
Awake()
See Mono
Declaration
protected virtual void Awake()
See Also
OnDestroy()
See Mono
Declaration
protected virtual void OnDestroy()
See Also
OnDisable()
See Mono
Declaration
protected virtual void OnDisable()
See Also
OnEnable()
See Mono
Declaration
protected virtual void OnEnable()
See Also
Update()
See Mono
Declaration
protected virtual void Update()