The ActionNames
property provides a collection of all action names defined in the current game's input settings. This property is useful for retrieving a list of all available input actions that can be queried or manipulated 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 retrieving a list of all available input actions that can be queried or manipulated within the game.
To access the ActionNames
property, simply call it directly from the Input
class since it is a static property. You can iterate over the collection to get each action name as a string.
// Example of how to use the ActionNames property foreach (var actionName in Input.ActionNames) { // Output each action name // Note: Avoid using Console.WriteLine in s&box Log.Info($"Action Name: {actionName}"); }