Class XRInputValueReader
Base abstract class for a serializable input value reader without typed code.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public abstract class XRInputValueReader
Constructors
XRInputValueReader()
Initializes and returns an instance of XRInputValueReader.
Declaration
protected XRInputValueReader()
See Also
XRInputValueReader(InputAction, InputSourceMode)
Initializes and returns an instance of XRInputValueReader.
Declaration
protected XRInputValueReader(InputAction inputAction, XRInputValueReader.InputSourceMode inputSourceMode)
Parameters
Type | Name | Description |
---|---|---|
InputAction | inputAction | The directly serialized embedded input action. |
XRInputValueReader.InputSourceMode | inputSourceMode | The initial input source mode. |
See Also
Properties
inputAction
The directly serialized embedded input action that is read when the mode is set to InputAction.
Declaration
public InputAction inputAction { get; set; }
Property Value
Type | Description |
---|---|
InputAction |
See Also
inputActionReference
The reference to an input action that is read when the mode is set to InputActionReference.
Declaration
public InputActionReference inputActionReference { get; set; }
Property Value
Type | Description |
---|---|
InputActionReference |
See Also
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.
Declaration
public XRInputValueReader.InputSourceMode inputSourceMode { get; set; }
Property Value
Type | Description |
---|---|
XRInputValueReader.InputSourceMode |
See Also
Methods
DisableDirectActionIfModeUsed()
Disable the directly serialized embedded input action if the mode is set to InputAction.
Declaration
public void DisableDirectActionIfModeUsed()
See Also
EnableDirectActionIfModeUsed()
Enable the directly serialized embedded input action if the mode is set to InputAction.
Declaration
public void EnableDirectActionIfModeUsed()