Description
The NameMode
property of the ModelBreakPiece
struct in the Sandbox.ModelEditor.Nodes
namespace specifies the naming mode for a breakable piece in a model. This property is a string that can be used to define how the piece should be named or identified within the model editor context.
Usage
Use the NameMode
property to set or retrieve the naming mode for a specific breakable piece in your model. This can be useful for organizing and managing different pieces within a complex model, especially when dealing with multiple breakable components.
Example
// Example of setting the NameMode property
ModelBreakPiece piece = new ModelBreakPiece();
piece.NameMode = "CustomNameMode";
// Example of getting the NameMode property
string currentNameMode = piece.NameMode;
// Use currentNameMode as needed