set_geometry_collection_mass
Updates specified mass, density, minimum mass clamp, or physics-material density settings on a UGeometryCollection asset and saves them undoably.
Instructions
Writes the mass settings of a UGeometryCollection asset (mass, mass_as_density, minimum_mass_clamp, density_from_physics_material), only for the fields given, then saves it; undoable. Returns the four values as stored, success, saved; fails when the save fails. Read them back with get_geometry_collection_info.
Returns: { geometry_collection_path: string, mass: float, mass_as_density: bool, minimum_mass_clamp: float, density_from_physics_material: bool, success: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mass | No | Optional total mass (kg), or density (kg/m^3) when mass_as_density is true | |
| mass_as_density | No | Optional, interpret 'mass' as a density in kg/m^3, default unchanged | |
| minimum_mass_clamp | No | Optional smallest allowable mass, default unchanged | |
| geometry_collection_path | Yes | Full asset path to the UGeometryCollection | |
| density_from_physics_material | No | Optional, derive density from the physics material, default unchanged |