I am using C++ to create a UListView and add list items in a loop.
It functions but I am unable to update properties on the list items because they are not constructed inside the scope of my file.
ServerListItemTest = CreateWidget<UmyServerListItem>(GetOwningPlayer(), myServerListItemclass);
myUListView->AddItem(ServerListItemTest);
ServerListItemTest->MySetTextMethod("text");
Does not work. ServerListItemTest NativePreConstruct and Construct are not yet called.
ServerListItemTest = CreateWidget<UmyServerListItem>(GetOwningPlayer(), myServerListItemclass);
myUCanvasPanel->AddChild(ServerListItemTest);
ServerListItemTest->MySetTextMethod("text");
Works properly. ServerListItemTest is Constructed after AddChild.
Is there an easy way to force the list or list items into constructing earlier, like the canvaspanel does so I can modify elements?