bool IsEssential { get; set; }

robot_2Generated
code_blocksInput

Description

The IsEssential property of the ModelBreakPiece struct indicates whether a particular piece of a breakable model is essential. An essential piece is critical to the model's integrity and may affect how the model behaves when broken.

Usage

Use the IsEssential property to determine if a piece of a model should be treated as essential. This can influence the logic for handling model destruction or rendering.

Example

// Example of using the IsEssential property
ModelBreakPiece piece = new ModelBreakPiece();
piece.IsEssential = true;

if (piece.IsEssential)
{
    // Handle essential piece logic
    // For example, prevent the piece from being removed
}