Description
The ShowRigidbodyComponent
property of the PlayerController
class is a boolean value that determines whether the Rigidbody component should be displayed in the user interface. This property is part of the "Components" group and is titled "Show Rigidbody" in the UI.
Usage
To use the ShowRigidbodyComponent
property, you can access it directly from an instance of the PlayerController
class. Setting this property to true
will make the Rigidbody component visible in the UI, while setting it to false
will hide it.
Example
// Example of using ShowRigidbodyComponent
PlayerController playerController = new PlayerController();
// Show the Rigidbody component in the UI
playerController.ShowRigidbodyComponent = true;
// Hide the Rigidbody component in the UI
playerController.ShowRigidbodyComponent = false;