bool UseInputControls { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The UseInputControls property of the PlayerController class determines whether the player controller should utilize input controls for player movement and actions. When set to true, the player controller will respond to input commands such as movement, jumping, and other actions defined by the input system.

Usage

To enable input controls for a player controller, set the UseInputControls property to true. This will allow the player to interact with the game using the defined input actions. If you want to disable input controls, set this property to false.

Example

// Example of enabling input controls for a player controller
PlayerController playerController = new PlayerController();
playerController.UseInputControls = true;

// Example of disabling input controls
playerController.UseInputControls = false;