bool HideBodyInFirstPerson { get; set; }

book_4_sparkGenerated
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 visual obstructions caused by the player's own body.

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 or visible in first-person view.

Example

// Example of setting the HideBodyInFirstPerson property
PlayerController playerController = new PlayerController();

// Hide the player's body in first-person view
playerController.HideBodyInFirstPerson = true;

// Show the player's body in first-person view
playerController.HideBodyInFirstPerson = false;