Download

Existing widgets on viewport

Hi there.

The usual method of adding a widget to the player’s screen is by using the *AddToViewport *node.

This is pretty fire and forget however, and it seems like references to added widgets don’t get stored anywhere.

Can anyone correct me if I’m wrong?
Is there any way to get a list of current widgets on a player’s viewport?

If you do not store the references manually, you can Get All Widgets of Class and tick Top Level Only:

Screenshot 2020-09-22 131022.jpg

You can choose UserWidget as the filter to fetch them all.