properly destroying all actors created by an actor with pcg component

hi

how do you properly clean up an actor with pcg component
the pcg component sample and based on the sampling, create actors
i deleted the main actor containing the pcg component and it did not seemingly properly delete the actors it created based on sampling

how do you properly delete / destroy all actors in such a case

thanks

I don’t know anything about pcg yet to be honest. But I’m wondering if you could call “get children” to get all it’s spawned actors. Or you could place all of the spawned actors into an array of soft references when they’re spawned, then async load them and destroy them on event

1 Like

yes it seems one must manually destroy actors created by a pcg component of an actor

i was hoping that this would automatically be taken care of but it seems not