Class InputActionManager
Use this class to automatically enable or disable all the inputs of type Input
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@3.1/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<Input |
See Also
Methods
DisableInput()
Disable all actions referenced by this component.
Declaration
public void DisableInput()
Remarks
This function will automatically be called when this Input
Disabling inputs only disables the action maps contained within the referenced
action map assets (see action
See Also
EnableInput()
Enable all actions referenced by this component.
Declaration
public void EnableInput()
Remarks
Unity will automatically call this function when this Input
Enabling inputs only enables the action maps contained within the referenced
action map assets (see action
See Also
OnDisable()
See Mono
Declaration
protected void OnDisable()
See Also
OnEnable()
See Mono
Declaration
protected void OnEnable()