cleanup_pcg_component
Wipe a PCG component's generated output synchronously to clear stale meshes and settings after graph edits, before regenerating or resizing the volume.
Instructions
Wipe a PCG component's generated output synchronously -- and the step you must not skip after editing a graph: a plain generate_pcg_component with force reuses the CACHED result, so the world keeps the STALE meshes and settings while every flag reads generated:true. Call this with remove_components=true FIRST, then generate, then verify by re-reading the actor's spawned components rather than the generated flag. Also the way to clear procedural content before moving or resizing the volume.
Returns: { actor_name, cleaned, generated }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Actor holding the UPCGComponent (required) | |
| remove_components | No | Optional; also remove spawned managed components (default false) |