Spawning an Actor when using a plugin

Ok, gotcha! Well, if you can live with that your plugin requires the game to use a GameInstance that the plugin comes with, I think this is a nice way of “Spawning actors on level load”. Since the GameInstance is global for the project, this will take place in all levels loaded.

  1. Create a custom GameInstance class in the plugin. Override this function.
  2. In this function you can spawn the actors.
  3. Regarding clicking on actors in runtime: see this link. In addition, I believe this is also required.
  4. Regarding how to achieve the notification, there are many ways this can be achieved. What comes to mind first is event dispatchers (basically delegates in c++). You might want to use an interface aswell to make the notification a bit more generic?