Class InputActionManager
Use this class to automatically enable or disable all the inputs of type InputAction in a list of assets of type InputActionAsset.
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
Assembly: solution.dll
Syntax
[AddComponentMenu("Input/Input Action Manager")]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.Inputs.InputActionManager.html")]
public class InputActionManager : MonoBehaviour
Remarks
Actions are initially disabled, meaning they do not listen/react to input yet. Use this class to mass enable actions so that they actively listen for input and run callbacks.
Properties
| Name | Description |
|---|---|
| actionAssets | Input action assets to affect when inputs are enabled or disabled. |
Methods
| Name | Description |
|---|---|
| DisableInput() | Disable all actions referenced by this component. |
| EnableInput() | Enable all actions referenced by this component. |
| OnDisable() | See MonoBehaviour. |
| OnEnable() | See MonoBehaviour. |