Description
The AltMoveButton
property in the PlayerController
class specifies the input button that the player will press to initiate running. This property is part of the input feature set and is categorized under "Running". It is a string value that represents the name of the button used for this action.
Usage
To use the AltMoveButton
property, assign it a string value that corresponds to the desired input button for running. This can be configured to match the player's preferred control scheme. For example, you might set it to "Shift" to use the Shift key for running.
Example
// Example of setting the AltMoveButton property
PlayerController playerController = new PlayerController();
playerController.AltMoveButton = "Shift"; // Sets the AltMoveButton to the Shift key