How to deselect actor in editor from c++

Hi,

This is a pretty straightforward question. How can I deselect actors from c++? I have a module that spawns actors in the editor and would like to deselect any other actors that were previously selected.

You can access UEditorEngine from GEditor, UEditorEngine is editor class extension of UEngine (which you can access from GEngine). Look API reference you will find some general editor controls and entry points to other editor components:

As it is extention of UEngine you can call UEngine functions on it too

Thanks for that :slight_smile:

GEditor->GetSelectedActors()->DeselectAll();