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 player actions. This property is essential for enabling interactive gameplay where the player can control the character using input devices like a keyboard or gamepad.
Usage
To enable input controls for a player character, set the UseInputControls
property to true
. This will allow the player to control the character using the configured input settings. 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;