Class XRInputDeviceInputTrackingStateValueReader
A ScriptableObject that provides a InputTrackingState value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference.
Inheritance
XRInputDeviceInputTrackingStateValueReader
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
Assembly: solution.dll
Syntax
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.Inputs.Readers.XRInputDeviceInputTrackingStateValueReader.html")]
[CreateAssetMenu(fileName = "XRInputDeviceInputTrackingStateValueReader", menuName = "XR/Input Value Reader/InputTrackingState")]
public class XRInputDeviceInputTrackingStateValueReader : XRInputDeviceValueReader<InputTrackingState>, IXRInputValueReader<InputTrackingState>, IXRInputValueReader
Methods
| Name | Description |
|---|---|
| ReadValue() | Read the current value from the input source. |
| TryReadValue(out InputTrackingState) | Try to read the current value from the input source. |