Provides programmatic access to InputActionAsset, InputActionMap, InputAction and InputControlScheme instances defined in asset "Assets/SoftLeitner/AdventureSouls/Settings/SoulsInput.inputactions".
This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified.
using namespace UnityEngine;
using UnityEngine.InputSystem;
public class Example : MonoBehaviour, MyActions.IPlayerActions
{
private MyActions_Actions m_Actions;
private MyActions_Actions.PlayerActions m_Player;
void Awake()
{
m_Actions = new MyActions_Actions();
m_Player = m_Actions.Player;
m_Player.AddCallbacks(this);
}
void OnDestroy()
{
m_Actions.Dispose();
}
void OnEnable()
{
m_Player.Enable();
}
void OnDisable()
{
m_Player.Disable();
}
#region Interface implementation of MyActions.IPlayerActions
public void OnMove(InputAction.CallbackContext context)
{
Debug.Log($"OnMove: {context.ReadValue<Vector2>()}");
}
public void OnAttack(InputAction.CallbackContext context)
{
Debug.Log($"OnAttack: {context.ReadValue<float>()}");
}
#endregion
}
|
| struct | ActActions |
| | Provides access to input actions defined in input action map "Act". More...
|
| |
| struct | ActionActions |
| | Provides access to input actions defined in input action map "Action". More...
|
| |
| interface | IActActions |
| | Interface to implement callback methods for all input action callbacks associated with input actions defined by "Act" which allows adding and removing callbacks. More...
|
| |
| interface | IActionActions |
| | Interface to implement callback methods for all input action callbacks associated with input actions defined by "Action" which allows adding and removing callbacks. More...
|
| |
| interface | ILookActions |
| | Interface to implement callback methods for all input action callbacks associated with input actions defined by "Look" which allows adding and removing callbacks. More...
|
| |
| interface | IMoveActions |
| | Interface to implement callback methods for all input action callbacks associated with input actions defined by "Move" which allows adding and removing callbacks. More...
|
| |
| interface | ISystemActions |
| | Interface to implement callback methods for all input action callbacks associated with input actions defined by "System" which allows adding and removing callbacks. More...
|
| |
| interface | IUIActions |
| | Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks. More...
|
| |
| struct | LookActions |
| | Provides access to input actions defined in input action map "Look". More...
|
| |
| struct | MoveActions |
| | Provides access to input actions defined in input action map "Move". More...
|
| |
| struct | SystemActions |
| | Provides access to input actions defined in input action map "System". More...
|
| |
| struct | UIActions |
| | Provides access to input actions defined in input action map "UI". More...
|
| |
|
|
InputActionAsset | asset [get] |
| | Provides access to the underlying asset instance.
|
| |
|
InputBinding? | bindingMask [get, set] |
| |
|
ReadOnlyArray< InputDevice >? | devices [get, set] |
| |
|
ReadOnlyArray< InputControlScheme > | controlSchemes [get] |
| |
|
IEnumerable< InputBinding > | bindings [get] |
| |
|
MoveActions | Move [get] |
| | Provides a new MoveActions instance referencing this action map.
|
| |
|
LookActions | Look [get] |
| | Provides a new LookActions instance referencing this action map.
|
| |
|
ActActions | Act [get] |
| | Provides a new ActActions instance referencing this action map.
|
| |
|
ActionActions | Action [get] |
| | Provides a new ActionActions instance referencing this action map.
|
| |
|
SystemActions | System [get] |
| | Provides a new SystemActions instance referencing this action map.
|
| |
|
UIActions | UI [get] |
| | Provides a new UIActions instance referencing this action map.
|
| |
| InputControlScheme | GamepadScheme [get] |
| | Provides access to the input control scheme.
|
| |
| InputControlScheme | KeyboardMouseScheme [get] |
| | Provides access to the input control scheme.
|
| |