How to add place a actor as editor start up?

Hi, Friends,

I am going to add my static mesh as editor start up (not game play yet). I tied to add a plugin for my game. And I added the simple line in the function “PluginModule::StartupModule()” to do that: “GEditor->GetWorld()->SpawnActor(location, rotation);” But it seems crash the editor. And I tired to change the “LoadingPhase” to “PostEngineInit”. But it doesn’t work well. Could you help on that?

Thanks,
Fei

I tried another way seems work only on a button click (the button is added into toolbar): GEditor->GetEditorWorldContext().World()->SpawnActor(location, rotation); But this way cannot work in the startupModule() method. :frowning: