[QUESTION] Can Epic UI team confirm how the disposal of ui widgets works...

Summary

So having started the transition from hud_message_devices to direct verse ui widgets i cannot find a concrete answer to my question.

When showing a ui to a player via hud_message_device we as creators dont need to do anything. When the player leaves we don’t have to worry.

I’m adding a ui widget direct to the PlayerUI via verse like so…

AddWidgetToPlayer(Player:player, Widget:widget):void=

    if(Player.IsActive[], PlayerUI := GetPlayerUI[Player]):
        PlayerUI.AddWidget(Widget)

Do we have to keep track of the ui in a map for example and remove the ui from the player ui when they leave the Playspace() ?

I assumed this widget would be auto garbage collected but need a confirmation as when a game gets bigger keeping track of all widgets would start to become tiresome compared to not doing anything with the hud_message_device

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

QUESTION

Expected Result

QUESTION

Observed Result

QUESTION

Platform(s)

PC

Additional Notes

Thankyou for any assistance someone at Epic can give to just confirm how this system works.