create_geometry_collection
Create and save a UGeometryCollection asset at a package path, optionally populated from a StaticMesh; an existing collection is reset and rebuilt.
Instructions
Creates a UGeometryCollection asset at package_path/name, optionally filled from one StaticMesh, and saves it. An existing collection there is RESET first (all geometry and sources discarded; created false, rebuilt true). A source_mesh_path that does not load as a StaticMesh is an error, checked before anything is touched. Succeeds only when the package reaches disk; a failed save leaves the collection in memory only (saved false, save_error).
Returns: { asset_path: string, geometry_collection_name: string, num_materials: int, num_transforms: int, created: bool, rebuilt: bool, saved: bool, save_error: string? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the geometry collection asset, e.g. GC_Wall | |
| package_path | Yes | Content folder for the asset, e.g. /Game/Chaos/Collections; a path without a leading slash is placed under /Game/ | |
| source_mesh_path | No | Optional StaticMesh to convert and append, e.g. /Engine/BasicShapes/Cube |