set_skeletal_mesh_lod_reduction_settings
Configure a skeletal mesh LOD's reduction settings before baking to steer triangle/vertex caps, importance weights, and termination criteria instead of using defaults.
Instructions
Author a LOD's FSkeletalMeshOptimizationSettings (ReductionSettings) — the data bake_skeletal_mesh_lod consumes, making the bake steerable instead of running with defaults. Partial update (idempotent): only fields present are written. Enums are by name (full "SMTC_NumOfTriangles" or short "NumOfTriangles"). termination_criterion (SMTC_*) and reduction_method (SMOT_*) are DISTINCT.
Returns: { lod_index: int, settings_applied: {...}, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_lod | No | int base LOD index to generate from (default 0). | |
| lod_index | No | LOD index to modify (default 0). | |
| recalc_normals | No | bool recompute normals. | |
| max_num_of_verts | No | int absolute vertex cap (ClampMin 6). | |
| reduction_method | No | SMOT_*: NumOfTriangles|MaxDeviation|TriangleOrDeviation. | |
| normals_threshold | No | float hard-edge angle in degrees (used when recalc_normals). | |
| welding_threshold | No | float vertex weld distance. | |
| shading_importance | No | SMOI_* importance of shading quality. | |
| skeletal_mesh_path | Yes | Content path to the skeletal mesh asset. | |
| texture_importance | No | SMOI_* importance of texture density. | |
| remap_morph_targets | No | bool remap morph targets onto the reduced LOD. | |
| skinning_importance | No | SMOI_* importance of skinning quality. | |
| max_bones_per_vertex | No | int max bone influences per vertex (ClampMin 1). | |
| max_num_of_triangles | No | int absolute triangle cap (ClampMin 4). | |
| silhouette_importance | No | SMOI_*: Off|Lowest|Low|Normal|High|Highest. | |
| termination_criterion | No | SMTC_*: NumOfTriangles|NumOfVerts|TriangleOrVert|AbsNumOfTriangles|AbsNumOfVerts|AbsTriangleOrVert. | |
| num_of_vert_percentage | No | float ratio of vertices to retain. | |
| enforce_bone_boundaries | No | bool penalize collapses across different major bones. | |
| max_deviation_percentage | No | float [0,1], accuracy target when reduction_method=MaxDeviation. | |
| max_num_of_verts_percentage | No | int (editor-only) cap when using percentage criterion (ClampMin 6). | |
| num_of_triangles_percentage | No | float ratio of triangles to retain (0.1 = 10%). | |
| max_num_of_triangles_percentage | No | int (editor-only) cap when using percentage criterion (ClampMin 4). |