Description
The UseRenderer
property of the HammerMesh
class determines whether the renderer is enabled for the mesh. This property is a boolean value that, when set to true
, enables the rendering of the mesh. If set to false
, the mesh will not be rendered.
Usage
To use the UseRenderer
property, you can simply get or set its value on an instance of the HammerMesh
class. This property is useful when you want to control the visibility of the mesh in the scene programmatically.
Example
// Example of using the UseRenderer property
// Assume 'hammerMesh' is an instance of HammerMesh
HammerMesh hammerMesh = new HammerMesh();
// Enable the renderer
hammerMesh.UseRenderer = true;
// Check if the renderer is enabled
bool isRendererEnabled = hammerMesh.UseRenderer;
// Disable the renderer
hammerMesh.UseRenderer = false;