2025-11-11 17:14:22 +08:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.13.1
// from Assets/Art/GameInputSO.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System ;
using System.Collections ;
using System.Collections.Generic ;
using UnityEngine.InputSystem ;
using UnityEngine.InputSystem.Utilities ;
/// <summary>
/// Provides programmatic access to <see cref="InputActionAsset" />, <see cref="InputActionMap" />, <see cref="InputAction" /> and <see cref="InputControlScheme" /> instances defined in asset "Assets/Art/GameInputSO.inputactions".
/// </summary>
/// <remarks>
/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified.
/// </remarks>
/// <example>
/// <code>
/// using namespace UnityEngine;
/// using UnityEngine.InputSystem;
///
/// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface.
/// public class Example : MonoBehaviour, MyActions.IPlayerActions
/// {
/// private MyActions_Actions m_Actions; // Source code representation of asset.
/// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map.
///
/// void Awake()
/// {
/// m_Actions = new MyActions_Actions(); // Create asset object.
/// m_Player = m_Actions.Player; // Extract action map object.
/// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions.
/// }
///
/// void OnDestroy()
/// {
/// m_Actions.Dispose(); // Destroy asset object.
/// }
///
/// void OnEnable()
/// {
/// m_Player.Enable(); // Enable all actions within map.
/// }
///
/// void OnDisable()
/// {
/// m_Player.Disable(); // Disable all actions within map.
/// }
///
/// #region Interface implementation of MyActions.IPlayerActions
///
/// // Invoked when "Move" action is either started, performed or canceled.
/// public void OnMove(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}");
/// }
///
/// // Invoked when "Attack" action is either started, performed or canceled.
/// public void OnAttack(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnAttack: {context.ReadValue<float>()}");
/// }
///
/// #endregion
/// }
/// </code>
/// </example>
public partial class @GameInput : IInputActionCollection2 , IDisposable
{
/// <summary>
/// Provides access to the underlying asset instance.
/// </summary>
public InputActionAsset asset { get ; }
/// <summary>
/// Constructs a new instance.
/// </summary>
public @GameInput ( )
{
asset = InputActionAsset . FromJson ( @ "{
"" name "" : "" GameInputSO "" ,
"" maps "" : [
{
"" name "" : "" Player "" ,
"" id "" : "" f62a4b92 - ef5e - 4175 - 8f 4 c - c9075429d32c "" ,
"" actions "" : [
{
"" name "" : "" Move "" ,
"" type "" : "" Value "" ,
"" id "" : "" 6 bc1aaf4 - b110 - 4f f7 - 891e-5 b9fe6f32c4d "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Look "" ,
"" type "" : "" Value "" ,
"" id "" : "" 2690 c379 - f54d - 45 be - a724 - 414123833 eb4 "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Jump "" ,
"" type "" : "" Button "" ,
"" id "" : "" 8 c4abdf8 - 4099 - 493 a - aa1a - 129 acec7c3df "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Sprint "" ,
"" type "" : "" Value "" ,
"" id "" : "" 980e881 e - 182 c - 404 c - 8 cbf - 3d 09f db48fef "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Escape "" ,
"" type "" : "" Button "" ,
"" id "" : "" d0bfd212 - 2876 - 4 c8e - b35e - cfb618a9dc0b "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" InteractPrimary "" ,
"" type "" : "" Button "" ,
"" id "" : "" 66 b26e9d - c51a - 4f b2 - a4cc - 3f 44 bdff3355 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" InteractSecondary "" ,
"" type "" : "" Button "" ,
"" id "" : "" 5 cc4edbd - 955 c - 4718 - 8 bce - ce78d07abf3f "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Zoom "" ,
"" type "" : "" PassThrough "" ,
"" id "" : "" 702f 73 cf - 2f 96 - 4624 - 871 e - f1263393b8f5 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Toggle Walking "" ,
"" type "" : "" Button "" ,
"" id "" : "" 4 a6790ad - d534 - 44f 4 - bfde - 3 a550760bd39 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" Press ( behavior = 1 ) "" ,
"" initialStateCheck "" : false
}
] ,
"" bindings "" : [
{
"" name "" : "" WASD "" ,
"" id "" : "" b7594ddb - 26 c9 - 4 ba2 - bd5a - 901468929 edc "" ,
"" path "" : "" 2D Vector ( mode = 1 ) "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 2063 a8b5 - 6 a45 - 43d e - 851 b - 65f 3d 46e7 b58 "" ,
"" path "" : "" < Keyboard > / w "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 64e4d 037 - 32e1 - 4f b9 - 80e4 - fc7330404dfe "" ,
"" path "" : "" < Keyboard > / s "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 0f ce8b11 - 5 eab - 4e4 e - a741 - b732e7b20873 "" ,
"" path "" : "" < Keyboard > / a "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 7 bdda0d6 - 57 a8 - 47 c8 - 8238 - 8 aecf3110e47 "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" up "" ,
"" id "" : "" bb94b405 - 58d 3 - 4998 - 8535 - d705c1218a98 "" ,
"" path "" : "" < Keyboard > / upArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 929d 9071 - 7d d0 - 4368 - 9743 - 6793 bb98087e "" ,
"" path "" : "" < Keyboard > / downArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 28 abadba - 06f f - 4d 37 - bb70 - af2f1e35a3b9 "" ,
"" path "" : "" < Keyboard > / leftArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 45f 115 b6 - 9 b4f - 4 ba8 - b500 - b94c93bf7d7e "" ,
"" path "" : "" < Keyboard > / rightArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" "" ,
"" id "" : "" e2f9aa65 - db06 - 4 c5b - a2e9 - 41 bc8acb9517 "" ,
"" path "" : "" < Gamepad > / leftStick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" StickDeadzone "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" ed66cbff - 2900 - 4 a62 - 8896 - 696503 cfcd31 "" ,
"" path "" : "" < Pointer > / delta "" ,
"" interactions "" : "" "" ,
"" processors "" : "" InvertVector2 ( invertX = false ) , ScaleVector2 ( x = 0.05 , y = 0.05 ) "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Look "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" d1d171b6 - 19d 8 - 47 a6 - ba3a - 71 b6a8e7b3c0 "" ,
"" path "" : "" < Gamepad > / rightStick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" InvertVector2 ( invertX = false ) , StickDeadzone , ScaleVector2 ( x = 300 , y = 300 ) "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Look "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 1 bd55a0b - 761e-4 ae4 - 89 ae - 8 ec127e08a29 "" ,
"" path "" : "" < Keyboard > / space "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Jump "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 9f 973413 - 5e27 - 4239 - acee - 38 c4a63feeba "" ,
"" path "" : "" < Gamepad > / buttonSouth "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Jump "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" dc65b89f - 9 bd3 - 43f b - 92 af - d0d87ba5faa4 "" ,
"" path "" : "" < Keyboard > / leftShift "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Sprint "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" c8fcd86e - dcfd - 4f 88 - 8e93 - b638cdbf3320 "" ,
"" path "" : "" < Gamepad > / leftTrigger "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Sprint "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 2253 ad85 - a0da - 43d f - ac0e - ee4d9e37f9fa "" ,
"" path "" : "" < Keyboard > / escape "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" Escape "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" ec4c5980 - 4d 30 - 41 c4 - b1b4 - 658d 52 b3a103 "" ,
"" path "" : "" < Mouse > / leftButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" InteractPrimary "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" adcb95fb - 24 a3 - 4 c13 - a238 - 588970915d 06 "" ,
"" path "" : "" < Mouse > / rightButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardMouse "" ,
"" action "" : "" InteractSecondary "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 18772126 - eab8 - 4125 - b643 - 22 aa0566bc51 "" ,
"" path "" : "" < Mouse > / scroll / y "" ,
"" interactions "" : "" "" ,
"" processors "" : "" Clamp ( min = - 0.1 , max = 0.1 ) "" ,
"" groups "" : "" "" ,
"" action "" : "" Zoom "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" fcac67ce - ed18 - 4457 - b978 - 8 eff197ccf91 "" ,
"" path "" : "" < Gamepad > / dpad / y "" ,
"" interactions "" : "" "" ,
"" processors "" : "" Clamp ( min = - 0.01 , max = 0.01 ) "" ,
"" groups "" : "" "" ,
"" action "" : "" Zoom "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 5 edc2393 - 2264 - 49d f - 8e82 - 18f 9 cfa4e062 "" ,
"" path "" : "" < Keyboard > / leftCtrl "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Toggle Walking "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
}
]
} ,
{
"" name "" : "" UI "" ,
"" id "" : "" ebfdbacf - 7468 - 4988 - 9497 - b726572473ea "" ,
"" actions "" : [
{
"" name "" : "" Cancel "" ,
"" type "" : "" Button "" ,
"" id "" : "" 1 c614fd1 - b2d4 - 4 a37 - 8 a58 - 480 ab69e09a5 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Submit "" ,
"" type "" : "" Button "" ,
"" id "" : "" 8 a983366 - d7b9 - 4953 - 89d 1 - 7f 6e4392 ecc6 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
2025-12-05 19:04:53 +08:00
} ,
{
"" name "" : "" Preview "" ,
"" type "" : "" Button "" ,
"" id "" : "" e7a71393 - e8e6 - 4 a67 - bcc3 - e0b2f7736a33 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Next "" ,
"" type "" : "" Button "" ,
"" id "" : "" 4 c9cb50b - b816 - 43 be - 80f 9 - 7d da2e157ed6 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
2025-11-11 17:14:22 +08:00
}
] ,
"" bindings "" : [
{
"" name "" : "" "" ,
"" id "" : "" 55447 a8c - bc61 - 4 ae9 - 98e4 - ccdcdb2bd538 "" ,
"" path "" : "" * / { Cancel } "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Cancel "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 9783 ec4c - 2684 - 44 b8 - b4dc - ca554c527049 "" ,
"" path "" : "" * / { Submit } "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Submit "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
2025-12-05 19:04:53 +08:00
} ,
{
"" name "" : "" "" ,
"" id "" : "" ed06c1b1 - 8 be6 - 4 a49 - b6f1 - 92 ace44585f2 "" ,
"" path "" : "" < Keyboard > / q "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Preview "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 66f bd15f - de18 - 4 bd7 - 9206 - f20b815143b5 "" ,
"" path "" : "" < Gamepad > / leftShoulder "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Preview "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" d718b1bf - 5 bdf - 45 c2 - 8 cfd - aa82e21a0159 "" ,
"" path "" : "" < Keyboard > / e "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Next "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 4902 b18f - 6005 - 4127 - 9 cd6 - 627536 a2270b "" ,
"" path "" : "" < Gamepad > / rightShoulder "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Next "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
2025-11-11 17:14:22 +08:00
}
]
}
] ,
"" controlSchemes "" : [
{
"" name "" : "" KeyboardMouse "" ,
"" bindingGroup "" : "" KeyboardMouse "" ,
"" devices "" : [
{
"" devicePath "" : "" < Keyboard > "" ,
"" isOptional "" : false ,
"" isOR "" : false
} ,
{
"" devicePath "" : "" < Mouse > "" ,
"" isOptional "" : false ,
"" isOR "" : false
}
]
} ,
{
"" name "" : "" Gamepad "" ,
"" bindingGroup "" : "" Gamepad "" ,
"" devices "" : [
{
"" devicePath "" : "" < Gamepad > "" ,
"" isOptional "" : true ,
"" isOR "" : false
} ,
{
"" devicePath "" : "" < XInputController > "" ,
"" isOptional "" : true ,
"" isOR "" : false
} ,
{
"" devicePath "" : "" < DualShockGamepad > "" ,
"" isOptional "" : true ,
"" isOR "" : false
}
]
} ,
{
"" name "" : "" Xbox Controller "" ,
"" bindingGroup "" : "" Xbox Controller "" ,
"" devices "" : [ ]
} ,
{
"" name "" : "" PS4 Controller "" ,
"" bindingGroup "" : "" PS4 Controller "" ,
"" devices "" : [ ]
}
]
} ");
// Player
m_Player = asset . FindActionMap ( "Player" , throwIfNotFound : true ) ;
m_Player_Move = m_Player . FindAction ( "Move" , throwIfNotFound : true ) ;
m_Player_Look = m_Player . FindAction ( "Look" , throwIfNotFound : true ) ;
m_Player_Jump = m_Player . FindAction ( "Jump" , throwIfNotFound : true ) ;
m_Player_Sprint = m_Player . FindAction ( "Sprint" , throwIfNotFound : true ) ;
m_Player_Escape = m_Player . FindAction ( "Escape" , throwIfNotFound : true ) ;
m_Player_InteractPrimary = m_Player . FindAction ( "InteractPrimary" , throwIfNotFound : true ) ;
m_Player_InteractSecondary = m_Player . FindAction ( "InteractSecondary" , throwIfNotFound : true ) ;
m_Player_Zoom = m_Player . FindAction ( "Zoom" , throwIfNotFound : true ) ;
m_Player_ToggleWalking = m_Player . FindAction ( "Toggle Walking" , throwIfNotFound : true ) ;
// UI
m_UI = asset . FindActionMap ( "UI" , throwIfNotFound : true ) ;
m_UI_Cancel = m_UI . FindAction ( "Cancel" , throwIfNotFound : true ) ;
m_UI_Submit = m_UI . FindAction ( "Submit" , throwIfNotFound : true ) ;
2025-12-05 19:04:53 +08:00
m_UI_Preview = m_UI . FindAction ( "Preview" , throwIfNotFound : true ) ;
m_UI_Next = m_UI . FindAction ( "Next" , throwIfNotFound : true ) ;
2025-11-11 17:14:22 +08:00
}
~ @GameInput ( )
{
UnityEngine . Debug . Assert ( ! m_Player . enabled , "This will cause a leak and performance issues, GameInput.Player.Disable() has not been called." ) ;
UnityEngine . Debug . Assert ( ! m_UI . enabled , "This will cause a leak and performance issues, GameInput.UI.Disable() has not been called." ) ;
}
/// <summary>
/// Destroys this asset and all associated <see cref="InputAction"/> instances.
/// </summary>
public void Dispose ( )
{
UnityEngine . Object . Destroy ( asset ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindingMask" />
public InputBinding ? bindingMask
{
get = > asset . bindingMask ;
set = > asset . bindingMask = value ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.devices" />
public ReadOnlyArray < InputDevice > ? devices
{
get = > asset . devices ;
set = > asset . devices = value ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.controlSchemes" />
public ReadOnlyArray < InputControlScheme > controlSchemes = > asset . controlSchemes ;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Contains(InputAction)" />
public bool Contains ( InputAction action )
{
return asset . Contains ( action ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.GetEnumerator()" />
public IEnumerator < InputAction > GetEnumerator ( )
{
return asset . GetEnumerator ( ) ;
}
/// <inheritdoc cref="IEnumerable.GetEnumerator()" />
IEnumerator IEnumerable . GetEnumerator ( )
{
return GetEnumerator ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Enable()" />
public void Enable ( )
{
asset . Enable ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Disable()" />
public void Disable ( )
{
asset . Disable ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindings" />
public IEnumerable < InputBinding > bindings = > asset . bindings ;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindAction(string, bool)" />
public InputAction FindAction ( string actionNameOrId , bool throwIfNotFound = false )
{
return asset . FindAction ( actionNameOrId , throwIfNotFound ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindBinding(InputBinding, out InputAction)" />
public int FindBinding ( InputBinding bindingMask , out InputAction action )
{
return asset . FindBinding ( bindingMask , out action ) ;
}
// Player
private readonly InputActionMap m_Player ;
private List < IPlayerActions > m_PlayerActionsCallbackInterfaces = new List < IPlayerActions > ( ) ;
private readonly InputAction m_Player_Move ;
private readonly InputAction m_Player_Look ;
private readonly InputAction m_Player_Jump ;
private readonly InputAction m_Player_Sprint ;
private readonly InputAction m_Player_Escape ;
private readonly InputAction m_Player_InteractPrimary ;
private readonly InputAction m_Player_InteractSecondary ;
private readonly InputAction m_Player_Zoom ;
private readonly InputAction m_Player_ToggleWalking ;
/// <summary>
/// Provides access to input actions defined in input action map "Player".
/// </summary>
public struct PlayerActions
{
private @GameInput m_Wrapper ;
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
public PlayerActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
/// <summary>
/// Provides access to the underlying input action "Player/Move".
/// </summary>
public InputAction @Move = > m_Wrapper . m_Player_Move ;
/// <summary>
/// Provides access to the underlying input action "Player/Look".
/// </summary>
public InputAction @Look = > m_Wrapper . m_Player_Look ;
/// <summary>
/// Provides access to the underlying input action "Player/Jump".
/// </summary>
public InputAction @Jump = > m_Wrapper . m_Player_Jump ;
/// <summary>
/// Provides access to the underlying input action "Player/Sprint".
/// </summary>
public InputAction @Sprint = > m_Wrapper . m_Player_Sprint ;
/// <summary>
/// Provides access to the underlying input action "Player/Escape".
/// </summary>
public InputAction @Escape = > m_Wrapper . m_Player_Escape ;
/// <summary>
/// Provides access to the underlying input action "Player/InteractPrimary".
/// </summary>
public InputAction @InteractPrimary = > m_Wrapper . m_Player_InteractPrimary ;
/// <summary>
/// Provides access to the underlying input action "Player/InteractSecondary".
/// </summary>
public InputAction @InteractSecondary = > m_Wrapper . m_Player_InteractSecondary ;
/// <summary>
/// Provides access to the underlying input action "Player/Zoom".
/// </summary>
public InputAction @Zoom = > m_Wrapper . m_Player_Zoom ;
/// <summary>
/// Provides access to the underlying input action "Player/ToggleWalking".
/// </summary>
public InputAction @ToggleWalking = > m_Wrapper . m_Player_ToggleWalking ;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get ( ) { return m_Wrapper . m_Player ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
public void Enable ( ) { Get ( ) . Enable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
public void Disable ( ) { Get ( ) . Disable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
public bool enabled = > Get ( ) . enabled ;
/// <summary>
/// Implicitly converts an <see ref="PlayerActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
public static implicit operator InputActionMap ( PlayerActions set ) { return set . Get ( ) ; }
/// <summary>
/// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <param name="instance">Callback instance.</param>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing.
/// </remarks>
/// <seealso cref="PlayerActions" />
public void AddCallbacks ( IPlayerActions instance )
{
if ( instance = = null | | m_Wrapper . m_PlayerActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_PlayerActionsCallbackInterfaces . Add ( instance ) ;
@Move . started + = instance . OnMove ;
@Move . performed + = instance . OnMove ;
@Move . canceled + = instance . OnMove ;
@Look . started + = instance . OnLook ;
@Look . performed + = instance . OnLook ;
@Look . canceled + = instance . OnLook ;
@Jump . started + = instance . OnJump ;
@Jump . performed + = instance . OnJump ;
@Jump . canceled + = instance . OnJump ;
@Sprint . started + = instance . OnSprint ;
@Sprint . performed + = instance . OnSprint ;
@Sprint . canceled + = instance . OnSprint ;
@Escape . started + = instance . OnEscape ;
@Escape . performed + = instance . OnEscape ;
@Escape . canceled + = instance . OnEscape ;
@InteractPrimary . started + = instance . OnInteractPrimary ;
@InteractPrimary . performed + = instance . OnInteractPrimary ;
@InteractPrimary . canceled + = instance . OnInteractPrimary ;
@InteractSecondary . started + = instance . OnInteractSecondary ;
@InteractSecondary . performed + = instance . OnInteractSecondary ;
@InteractSecondary . canceled + = instance . OnInteractSecondary ;
@Zoom . started + = instance . OnZoom ;
@Zoom . performed + = instance . OnZoom ;
@Zoom . canceled + = instance . OnZoom ;
@ToggleWalking . started + = instance . OnToggleWalking ;
@ToggleWalking . performed + = instance . OnToggleWalking ;
@ToggleWalking . canceled + = instance . OnToggleWalking ;
}
/// <summary>
/// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <remarks>
/// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects.
/// </remarks>
/// <seealso cref="PlayerActions" />
private void UnregisterCallbacks ( IPlayerActions instance )
{
@Move . started - = instance . OnMove ;
@Move . performed - = instance . OnMove ;
@Move . canceled - = instance . OnMove ;
@Look . started - = instance . OnLook ;
@Look . performed - = instance . OnLook ;
@Look . canceled - = instance . OnLook ;
@Jump . started - = instance . OnJump ;
@Jump . performed - = instance . OnJump ;
@Jump . canceled - = instance . OnJump ;
@Sprint . started - = instance . OnSprint ;
@Sprint . performed - = instance . OnSprint ;
@Sprint . canceled - = instance . OnSprint ;
@Escape . started - = instance . OnEscape ;
@Escape . performed - = instance . OnEscape ;
@Escape . canceled - = instance . OnEscape ;
@InteractPrimary . started - = instance . OnInteractPrimary ;
@InteractPrimary . performed - = instance . OnInteractPrimary ;
@InteractPrimary . canceled - = instance . OnInteractPrimary ;
@InteractSecondary . started - = instance . OnInteractSecondary ;
@InteractSecondary . performed - = instance . OnInteractSecondary ;
@InteractSecondary . canceled - = instance . OnInteractSecondary ;
@Zoom . started - = instance . OnZoom ;
@Zoom . performed - = instance . OnZoom ;
@Zoom . canceled - = instance . OnZoom ;
@ToggleWalking . started - = instance . OnToggleWalking ;
@ToggleWalking . performed - = instance . OnToggleWalking ;
@ToggleWalking . canceled - = instance . OnToggleWalking ;
}
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />.
/// </summary>
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
public void RemoveCallbacks ( IPlayerActions instance )
{
if ( m_Wrapper . m_PlayerActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
/// <summary>
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />.
/// </summary>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks.
/// </remarks>
/// <seealso cref="PlayerActions.AddCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
public void SetCallbacks ( IPlayerActions instance )
{
foreach ( var item in m_Wrapper . m_PlayerActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_PlayerActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
/// <summary>
/// Provides a new <see cref="PlayerActions" /> instance referencing this action map.
/// </summary>
public PlayerActions @Player = > new PlayerActions ( this ) ;
// UI
private readonly InputActionMap m_UI ;
private List < IUIActions > m_UIActionsCallbackInterfaces = new List < IUIActions > ( ) ;
private readonly InputAction m_UI_Cancel ;
private readonly InputAction m_UI_Submit ;
2025-12-05 19:04:53 +08:00
private readonly InputAction m_UI_Preview ;
private readonly InputAction m_UI_Next ;
2025-11-11 17:14:22 +08:00
/// <summary>
/// Provides access to input actions defined in input action map "UI".
/// </summary>
public struct UIActions
{
private @GameInput m_Wrapper ;
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
public UIActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
/// <summary>
/// Provides access to the underlying input action "UI/Cancel".
/// </summary>
public InputAction @Cancel = > m_Wrapper . m_UI_Cancel ;
/// <summary>
/// Provides access to the underlying input action "UI/Submit".
/// </summary>
public InputAction @Submit = > m_Wrapper . m_UI_Submit ;
/// <summary>
2025-12-05 19:04:53 +08:00
/// Provides access to the underlying input action "UI/Preview".
/// </summary>
public InputAction @Preview = > m_Wrapper . m_UI_Preview ;
/// <summary>
/// Provides access to the underlying input action "UI/Next".
/// </summary>
public InputAction @Next = > m_Wrapper . m_UI_Next ;
/// <summary>
2025-11-11 17:14:22 +08:00
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get ( ) { return m_Wrapper . m_UI ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
public void Enable ( ) { Get ( ) . Enable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
public void Disable ( ) { Get ( ) . Disable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
public bool enabled = > Get ( ) . enabled ;
/// <summary>
/// Implicitly converts an <see ref="UIActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
public static implicit operator InputActionMap ( UIActions set ) { return set . Get ( ) ; }
/// <summary>
/// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <param name="instance">Callback instance.</param>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing.
/// </remarks>
/// <seealso cref="UIActions" />
public void AddCallbacks ( IUIActions instance )
{
if ( instance = = null | | m_Wrapper . m_UIActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_UIActionsCallbackInterfaces . Add ( instance ) ;
@Cancel . started + = instance . OnCancel ;
@Cancel . performed + = instance . OnCancel ;
@Cancel . canceled + = instance . OnCancel ;
@Submit . started + = instance . OnSubmit ;
@Submit . performed + = instance . OnSubmit ;
@Submit . canceled + = instance . OnSubmit ;
2025-12-05 19:04:53 +08:00
@Preview . started + = instance . OnPreview ;
@Preview . performed + = instance . OnPreview ;
@Preview . canceled + = instance . OnPreview ;
@Next . started + = instance . OnNext ;
@Next . performed + = instance . OnNext ;
@Next . canceled + = instance . OnNext ;
2025-11-11 17:14:22 +08:00
}
/// <summary>
/// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <remarks>
/// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects.
/// </remarks>
/// <seealso cref="UIActions" />
private void UnregisterCallbacks ( IUIActions instance )
{
@Cancel . started - = instance . OnCancel ;
@Cancel . performed - = instance . OnCancel ;
@Cancel . canceled - = instance . OnCancel ;
@Submit . started - = instance . OnSubmit ;
@Submit . performed - = instance . OnSubmit ;
@Submit . canceled - = instance . OnSubmit ;
2025-12-05 19:04:53 +08:00
@Preview . started - = instance . OnPreview ;
@Preview . performed - = instance . OnPreview ;
@Preview . canceled - = instance . OnPreview ;
@Next . started - = instance . OnNext ;
@Next . performed - = instance . OnNext ;
@Next . canceled - = instance . OnNext ;
2025-11-11 17:14:22 +08:00
}
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="UIActions.UnregisterCallbacks(IUIActions)" />.
/// </summary>
/// <seealso cref="UIActions.UnregisterCallbacks(IUIActions)" />
public void RemoveCallbacks ( IUIActions instance )
{
if ( m_Wrapper . m_UIActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
/// <summary>
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />.
/// </summary>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks.
/// </remarks>
/// <seealso cref="UIActions.AddCallbacks(IUIActions)" />
/// <seealso cref="UIActions.RemoveCallbacks(IUIActions)" />
/// <seealso cref="UIActions.UnregisterCallbacks(IUIActions)" />
public void SetCallbacks ( IUIActions instance )
{
foreach ( var item in m_Wrapper . m_UIActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_UIActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
/// <summary>
/// Provides a new <see cref="UIActions" /> instance referencing this action map.
/// </summary>
public UIActions @UI = > new UIActions ( this ) ;
private int m_KeyboardMouseSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme KeyboardMouseScheme
{
get
{
if ( m_KeyboardMouseSchemeIndex = = - 1 ) m_KeyboardMouseSchemeIndex = asset . FindControlSchemeIndex ( "KeyboardMouse" ) ;
return asset . controlSchemes [ m_KeyboardMouseSchemeIndex ] ;
}
}
private int m_GamepadSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme GamepadScheme
{
get
{
if ( m_GamepadSchemeIndex = = - 1 ) m_GamepadSchemeIndex = asset . FindControlSchemeIndex ( "Gamepad" ) ;
return asset . controlSchemes [ m_GamepadSchemeIndex ] ;
}
}
private int m_XboxControllerSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme XboxControllerScheme
{
get
{
if ( m_XboxControllerSchemeIndex = = - 1 ) m_XboxControllerSchemeIndex = asset . FindControlSchemeIndex ( "Xbox Controller" ) ;
return asset . controlSchemes [ m_XboxControllerSchemeIndex ] ;
}
}
private int m_PS4ControllerSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme PS4ControllerScheme
{
get
{
if ( m_PS4ControllerSchemeIndex = = - 1 ) m_PS4ControllerSchemeIndex = asset . FindControlSchemeIndex ( "PS4 Controller" ) ;
return asset . controlSchemes [ m_PS4ControllerSchemeIndex ] ;
}
}
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Player" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="PlayerActions.AddCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
public interface IPlayerActions
{
/// <summary>
/// Method invoked when associated input action "Move" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnMove ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Look" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnLook ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Jump" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnJump ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Sprint" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSprint ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Escape" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnEscape ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "InteractPrimary" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnInteractPrimary ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "InteractSecondary" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnInteractSecondary ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Zoom" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnZoom ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Toggle Walking" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnToggleWalking ( InputAction . CallbackContext context ) ;
}
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="UIActions.AddCallbacks(IUIActions)" />
/// <seealso cref="UIActions.RemoveCallbacks(IUIActions)" />
public interface IUIActions
{
/// <summary>
/// Method invoked when associated input action "Cancel" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnCancel ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Submit" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSubmit ( InputAction . CallbackContext context ) ;
2025-12-05 19:04:53 +08:00
/// <summary>
/// Method invoked when associated input action "Preview" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnPreview ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Next" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnNext ( InputAction . CallbackContext context ) ;
2025-11-11 17:14:22 +08:00
}
}