The GetActions
method retrieves all input actions currently available in the game. This method is useful for accessing the complete list of input actions that can be used for handling player inputs.
The GetActions
method retrieves all input actions currently available in the game. This method is useful for accessing the complete list of input actions that can be used for handling player inputs.
To use the GetActions
method, simply call it from the Input
class. It returns an IEnumerable<InputAction>
, which can be iterated over to access each input action.
// Example of using GetActions to iterate over all input actions var actions = Input.GetActions(); foreach (var action in actions) { // Process each action Console.WriteLine($"Action Name: {action.Name}"); }