set_static_mesh_nanite
Configure Nanite for a UStaticMesh asset: enable or disable it, set the kept triangle percentage, rebuild the mesh, and save the changes.
Instructions
Set the Nanite settings of a UStaticMesh asset through the StaticMeshEditor subsystem, which rebuilds the mesh, then save it; a failed save is an error. Both fields are always written: omitting enabled disables Nanite and omitting keep_percent_triangles resets it to 1.0. Returns nanite_enabled read back.
Returns: { static_mesh_path, nanite_enabled, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | true enables Nanite, false disables it; default false, so leaving it out disables Nanite. | |
| static_mesh_path | Yes | Content path to the UStaticMesh asset. | |
| keep_percent_triangles | No | Fraction of the source triangles Nanite keeps, 1.0 keeps them all (default 1.0, written even when omitted). |