The ActionNames
property provides a collection of all action names defined in the current game's input settings. This property is useful for developers who need to access or iterate over the available input actions within the game.
The ActionNames
property provides a collection of all action names defined in the current game's input settings. This property is useful for developers who need to access or iterate over the available input actions within the game.
To use the ActionNames
property, simply access it through the Input
class. Since it is a static property, you do not need to instantiate the Input
class.
Example usage:
foreach (var actionName in Input.ActionNames)
{
// Process each action name
Console.WriteLine(actionName);
}
foreach (var actionName in Input.ActionNames) { // Process each action name Console.WriteLine(actionName); }