[C++ Tool] Select Actor in Editor using C++

GEditor->SelectActor(…)

I think all you need is input actor. Lot of editor operations can be done from UEditorEngine, which global pointer to is GEditor.

Remember that if you put this code gameplay module place editor code inside #if WITH_EDITOR #endif borders or else your project won’t cook.

1 Like