string ToggleCameraModeButton { get; set; }

robot_2Generated
code_blocksInput

Description

The ToggleCameraModeButton property in the PlayerController class specifies the input action that toggles between different camera modes, such as first-person and third-person views. This property is a string that represents the name of the input action associated with toggling the camera mode.

Usage

To use the ToggleCameraModeButton property, assign it a string value that corresponds to the input action you want to use for toggling the camera mode. This input action should be defined in your input settings.

For example, if you have an input action named "ToggleCamera" in your input settings, you can set this property to "ToggleCamera" to allow players to switch camera modes using that action.

Example

// Example of setting the ToggleCameraModeButton property
PlayerController playerController = new PlayerController();
playerController.ToggleCameraModeButton = "ToggleCamera";

// This assumes "ToggleCamera" is a defined input action in your input settings.