create_procedural_box_mesh
Generate a box mesh in an Unreal procedural mesh component, replacing or appending a target section and optionally enabling collision.
Instructions
Generate a box mesh via UKismetProceduralMeshLibrary::GenerateBoxMesh and push it into a procedural mesh component as a single section: section_index replaces an existing section, or equals the section count to append a new one. A negative section_index, or one past the section count, is an error checked before anything changes.
Returns: { actor_label: string, section_index: int, vertex_count: int, triangle_count: int, total_sections: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box_radius | No | Optional [x, y, z] half-extents; defaults to (50, 50, 50) | |
| actor_label | Yes | Editor label of the actor carrying the PMC | |
| section_index | No | Optional target section index, 0 to the current section count (which appends a new section); defaults to 0 | |
| component_index | No | Optional 0-based PMC index on the actor; defaults to 0 | |
| create_collision | No | Optional bool; defaults to false |