Class XRInputValueReader
Base abstract class for a serializable input value reader without typed code.
XRInputValueReader<TValue>
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
Assembly: solution.dll
Syntax
public abstract class XRInputValueReader
Constructors
| Name | Description |
|---|---|
| XRInputValueReader() | Initializes and returns an instance of XRInputValueReader. |
| XRInputValueReader(InputAction, InputSourceMode) | Initializes and returns an instance of XRInputValueReader. |
Properties
| Name | Description |
|---|---|
| inputAction | The directly serialized embedded input action that is read when the mode is set to InputAction. |
| inputActionReference | The reference to an input action that is read when the mode is set to InputActionReference. |
| inputSourceMode | The mode that determines from which input source the value is read from. By default this is set to InputActionReference to read from an input action defined in the project. |
Methods
| Name | Description |
|---|---|
| DisableDirectActionIfModeUsed() | Disable the directly serialized embedded input action if the mode is set to InputAction. |
| EnableDirectActionIfModeUsed() | Enable the directly serialized embedded input action if the mode is set to InputAction. |
See Also
XRInputValueReader<TValue>