How can I spawn an actor in a streamed level?

I want to spawn actors in a specific streamed level, but i can’t seem to change which level they spawn in.
Right now every actor i spawn always spawns in the persistent level, meaning they will always exist even if i unload the streamed level which surrounds the object.

Is there any way I can choose which streamed level an actor spawned during runtime exists in? So if i unload the level, that actor will no longer exist.

Everything spawns in the persistent, nothing you can do about that.

What you can do though, is set the ‘owner’ pin on the spawned object. As long as the owner is something in the streamed level, the object will be destroyed when the streamed level is removed.

1 Like

If the actor goes outside of the streamed level should the owner then be switched to the closest new stream?

Otherwise you will have an actor that suddenly pops out of existence while chasing the player out of the streaming levels loading area.