Description
The ShowRigidbodyComponent
property of the PlayerController
class is a boolean value that determines whether the Rigidbody component should be displayed in the editor. This property is part of the "Components" group and is titled "Show Rigidbody" in the editor interface.
Usage
To use the ShowRigidbodyComponent
property, you can simply get or set its value to control the visibility of the Rigidbody component in the editor. This can be useful for debugging or development purposes when you need to visualize the Rigidbody component associated with the player controller.
Example
// Example of setting the ShowRigidbodyComponent property
PlayerController playerController = new PlayerController();
playerController.ShowRigidbodyComponent = true; // This will show the Rigidbody component in the editor
// Example of getting the ShowRigidbodyComponent property
bool isRigidbodyVisible = playerController.ShowRigidbodyComponent;
if (isRigidbodyVisible)
{
// Perform actions knowing the Rigidbody component is visible
}