string UseButton { get; set; }

robot_2Generated
code_blocksInput

Description

The UseButton property specifies the input button that the player will press to interact with objects in the game. This property is part of the PlayerController class and is used to define the key or button that triggers the use action, allowing players to interact with various elements within the game environment.

Usage

To set the UseButton property, assign a string representing the desired input button. This could be a key on the keyboard or a button on a game controller, depending on the input system being used.

Example

// Example of setting the UseButton property
PlayerController playerController = new PlayerController();
playerController.UseButton = "E"; // Sets the use button to the 'E' key on the keyboard