set_static_mesh_collision_complexity
Set a UStaticMesh asset's BodySetup collision trace complexity, creating the BodySetup if missing and saving the asset. Verify the returned value, as invalid inputs default silently.
Instructions
Set the collision complexity (BodySetup CollisionTraceFlag) of a UStaticMesh asset, creating its BodySetup when missing, then save it; a failed save is an error. An unrecognized complexity silently becomes default, so check collision_complexity, which is read back.
Returns: { static_mesh_path, collision_complexity, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| complexity | Yes | One of "default", "simple_and_complex", "simple_as_complex", "complex_as_simple", case-insensitive; any other value is stored as default. | |
| static_mesh_path | Yes | Content path to the UStaticMesh asset. |