I’m trying to make an editor widget that lets me select actors to export. I don’t want to use File > Export Selected... everytime, so I wrote a simple C++ function that calls the correct function for my use case.
I want a widget to have an intuitive user experience when exporting my actors, instead of selecting them from the level.
In this example widget, I’d like the “Select” button to open the popup and let me chose multiple (one is fine too) actors. I will then call a C++ that takes the array of actors as parameter
I’m trying to avoid having to select the actors from the outliner. I find it unintuitive and it can become a hassle to select multiple actors far apart from each other in big levels.
I can already select them from C++ this way (once I have a pointer):
// Mark actors as selected
for (AActor* Actor : Actors) {
GEditor->SelectActor(Actor, true, true);
}
What I’m looking for is how to create the popup window, similar to the screenshot in the original post.