set_num_extended_polygroup_layers
Set the number of extended polygroup layers on a DynamicMeshActor's live mesh, then read it back to confirm the requested count was applied.
Instructions
Set the number of extended polygroup layers on the live dynamic mesh of a DynamicMeshActor via UGeometryScriptLibrary_MeshPolygroupFunctions::SetNumExtendedPolygroupLayers. Idempotent: the engine dedups (only reshapes attributes when the count actually differs from the current one), so re-setting the same count is a no-op. The layer count is read back AFTER the set via GetNumExtendedPolygroupLayers: applied is true when it equals the request, and the call fails when it does not.
Returns: { actor_name, requested_num_layers, num_polygroup_layers, applied: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Label or name of the target DynamicMeshActor. | |
| num_layers | No | Desired number of extended polygroup layers (>= 0). |