repack_mesh_uvs
Packs existing UV islands on a DynamicMeshActor's UV channel into standard UV space, optionally optimizing island rotation and reporting whether the UVs were repacked.
Instructions
Pack existing UV islands on a UV channel into standard UV space. A channel the mesh does not have, or an empty mesh, is an error checked before anything changes. A channel with no UVs set has no islands to pack: the call succeeds with repacked false and a note, leaving the mesh unchanged. Otherwise repacked is false, and the call fails, when the engine reports an error. No undo entry, nothing saved.
Returns: { actor_name, uv_channel, target_image_width, optimize_island_rotation, num_uv_islands, repacked, note? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | DynamicMeshActor name (required) | |
| uv_channel | No | UV channel index (default 0) | |
| target_image_width | No | target image width in pixels (default 512) | |
| optimize_island_rotation | No | whether to optimize island rotation (default true) |