[C++ Tool] Select Actor in Editor using C++
I'm creating a tool in C++ and I want my actor to select another actor in the editor/world. Precisely, on the Actor's EditorKeyPressed event, I check if the enter key is pressed, actor is selected, and if the actor has a parent actor. If all conditions are met, I would then select the parent actor.
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here