Save actors in the game instance

  • there’s a bunch of uniquely tagged actors in the level:

  • the Game Instance has an empty Name Set container:

  • just before an actor is destroyed, we add their tag to the Game Instance’s set:

  • when the level is loaded, we query that set:

  • we get all actors in the level, look at their tag and attempt to find it in the Game Instance’s set
  • if the tag is present in the set, we Destroy that actor

The above can be optimised further but that’s the gist.

1 Like