Just after i wrote that i got an idea that might work!
- Make a console command that find all actors with interface and the tag added at build.
- Collect all needed information, class, transform etc.
- Write that information to a Data asset.
- Later in editor, run another console command that spawn the actors stored in the data asset.
How do i add console commands for the editor? The first i just put in GameMode and it works just fine with collecting all needed data. But the game mode do not exist in the editor. I guess i could make a editor widget to recreate the actors, but i prefer a console command!
I went with the editor utility widget, it works perfectly!