Transfer PIE actors to Editor

Just after i wrote that i got an idea that might work!

  1. Make a console command that find all actors with interface and the tag added at build.
  2. Collect all needed information, class, transform etc.
  3. Write that information to a Data asset.
  4. 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!