The HideInGame
property of the MeshComponent
class determines whether the mesh should be hidden during gameplay. This property is useful for scenarios where you want the mesh to be visible in the editor but not during the actual game execution.
The HideInGame
property of the MeshComponent
class determines whether the mesh should be hidden during gameplay. This property is useful for scenarios where you want the mesh to be visible in the editor but not during the actual game execution.
To use the HideInGame
property, simply set it to true
if you want the mesh to be invisible during gameplay, or false
if you want it to be visible. This property can be accessed and modified at runtime.
// Example of using the HideInGame property // Create a new MeshComponent instance MeshComponent meshComponent = new MeshComponent(); // Set the mesh to be hidden during gameplay meshComponent.HideInGame = true; // Check if the mesh is set to be hidden bool isHidden = meshComponent.HideInGame; // Output the current state // isHidden will be true in this case