Class InputActionManager
Use this class to automatically enable or disable all the inputs of type UnityEngine.InputSystem.InputAction in a list of assets of type UnityEngine.InputSystem.InputActionAsset.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("Input/Input Action Manager")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.5/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
actionAssets
Input action assets to affect when inputs are enabled or disabled.
Declaration
public List<InputActionAsset> actionAssets { get; set; }
Property Value
Type | Description |
---|---|
List<InputActionAsset> |
See Also
Methods
DisableInput()
Disable all actions referenced by this component.
Declaration
public void DisableInput()
Remarks
This function will automatically be called when this InputActionManager component is disabled.
However, this method can be called to disable input manually, such as after enabling it with EnableInput().
Disabling inputs only disables the action maps contained within the referenced
action map assets (see actionAssets).
See Also
EnableInput()
Enable all actions referenced by this component.
Declaration
public void EnableInput()
Remarks
Unity will automatically call this function when this InputActionManager component is enabled.
However, this method can be called to enable input manually, such as after disabling it with DisableInput().
Enabling inputs only enables the action maps contained within the referenced
action map assets (see actionAssets).
See Also
OnDisable()
See MonoBehaviour.
Declaration
protected void OnDisable()
See Also
OnEnable()
See MonoBehaviour.
Declaration
protected void OnEnable()