Send server listing to UMG GUI list view?


How can I interact with an UMG blueprint GUI from c++? I have a list box that I want to fill with server listing information. The server listing should automatically be updated by c++ code.

Best to do it the other way around, expose a UObject in C++ that knows about the servers as some object in the world, or on the game instance that the GUI has access to. Let the GUI poll, or hook some delegates on the object to get updates about the servers. Or you can implement a C++ derived version of UUserWidget do all the server C++ logic there and expose some events to the widget above that it can handle. Then just reparent the WidgetBlueprint to use your native one.

There’s a good tutorial here on the second suggestion,

Thanks, that solves a lot of problems for me!