string CollisionTags { get; set; }

robot_2Generated
code_blocksInput

Description

The CollisionTags property of the ModelBreakPiece struct is a string that specifies the collision tags associated with a breakable piece in the model editor. This property is used to define how the piece interacts with other objects in terms of collision detection.

Usage

Use the CollisionTags property to assign or retrieve the collision tags for a specific breakable piece. This can be useful for categorizing pieces based on their collision behavior or for applying specific collision rules.

Example

// Example of setting the CollisionTags property
ModelBreakPiece piece = new ModelBreakPiece();
piece.CollisionTags = "tag1, tag2, tag3";

// Example of getting the CollisionTags property
string tags = piece.CollisionTags;
// tags now contains "tag1, tag2, tag3"