bool HideBodyInFirstPerson { get; set; }

robot_2Generated
code_blocksInput

Description

The HideBodyInFirstPerson property determines whether the player's body is visible when the camera is in first-person mode. This can be useful for enhancing immersion by removing the player's body from view, which might otherwise obstruct the player's vision.

Usage

To use the HideBodyInFirstPerson property, simply set it to true or false depending on whether you want the player's body to be hidden in first-person view.

For example, if you want to hide the player's body when in first-person mode, set this property to true:

PlayerController playerController = new PlayerController();
playerController.HideBodyInFirstPerson = true;

If you want the player's body to be visible, set it to false:

playerController.HideBodyInFirstPerson = false;

Example

PlayerController playerController = new PlayerController();
playerController.HideBodyInFirstPerson = true;