Creating widget with list from an array

Hello guys!
Please help me, I’m stuck in one thing…
In game I have a list of spaceships around mine and I make an array of them. Now I wanna to create a widget which will show all of that ships from array. So I need to create a widget in which will be one scroll box and it will fill by horizontal lines with information from array. Of course if I’ll get a new item in array it need to be added in widget, if I lose item, it must be deleted from list.
I bet it must be a video guide for something like that but still cannot find anyone.
Hope you understand me. Thanks in advance.

You described it pretty much how it should be programmed -

1: Get array of your ships ActorReferences (so you can get specifics to each actor in the world)
2: Create a child widget that will display the information in whatever graphic fashion you want (image of ship, Text-name of owner/actor, etc)
2: create your Parent widget with a Unifrom Grid Panel - casting to whatever blueprint holds this array (should be either level or gamestate class); retrieve the array and inject this code in its place (seen below)

1 Like