set_static_mesh_convex_collision
Generate V-HACD convex collision for a UStaticMesh by replacing its simple collision, with automatic duplication of read-only Engine assets.
Instructions
Replace a UStaticMesh's simple collision with a V-HACD convex decomposition (the "Auto Convex Collision" editor action) via UStaticMeshEditorSubsystem::SetConvexDecompositionCollisionsWithNotification. The subsystem removes any existing collision first, so this is idempotent (re-running replaces, never duplicates). Reuses the duplicate-first logic so a read-only /Engine source is copied into dest_path first. The subsystem returns false honestly on bad input (no valid mesh description / not on the game thread / under PIE) — surfaced as a CLEAN error, never a fake success.
Returns: { static_mesh_path, hull_count, max_hull_verts, hull_precision, convex_count, element_count, collision_set, duplicated_to_game, saved, save_error? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_path | Yes | /Game path to duplicate a read-only /Engine source mesh into first (required only when the source is not under /Game). | |
| hull_count | No | Maximum number of convex pieces to create (default 4, must be positive). | |
| hull_precision | No | Voxel resolution used during decomposition (default 100000, must be positive). | |
| max_hull_verts | No | Maximum vertices per generated hull (default 16). | |
| static_mesh_path | Yes | Path to the source UStaticMesh. |