Hello! i have been learning UE5 for a bit now , followed some beginner courses and tutorials and been working on a user-interface. At this time i have mainly used 2 methods to refresh my widgets 1. Removing widget from parent and recreating it 2. Clearing children and re-populating it.
In this particular case i am trying to refresh equipment panel widgets called “Equipment slots” which is in a structure like this
Main user interface
a. Equipment Panel
-. Equipment slot
-. Equipment slot
-. Equipment slot
-. Equipment slot
-. Equipment slot
Both previously used methods don’t seem to work or i’m misunderstanding something very basic here.
What other widget refresh methods exist in UE5? Extensive google searched yield no results.
Hi @dreipher
I believe it depends on what you mean by refreshing.
Assuming it is an updating information widget shows, you need to provide that updated information to the widget. And the function depends on what you want to refresh and when (that could be a bunch of functions, actually). For example, for the text widget there is a node SetText. And you could call it every time, you want to update a text. And there is no need to recreate the widget, but it depends.
Perhaps, if you could provide more details, you will get a more specific answer.
While trying to explain what i need to do, i have actually found the solution i was looking for.
I realized i could just call the same equipment slot function again and it would update itself…
added a custom event to the event graph of the slots