Download

How to show widget component on screen space

I tried to change the space of my widget component to screen:

image

But when I play in editor, nothing is showed on my screen.

How can I get it to display?

It’s not enough to create a widget. You also need to instantiate your widget and add it to a viewport or else unreal does not know if it schould be displayed.

as an example you could add something like this to your level blueprint.

2 Likes

I searched on the Internet and people seem to be able to do that by using widget component:

Widget component on screen space - how to scale? - Development Discussion / Blueprint Visual Scripting - Unreal Engine Forums

Screen Space Widget Component Disappears? - UE4 AnswerHub (unrealengine.com)

I just don’t know how.

What Atcen said is correct. You have created a widget in the editor but have not spawned it at runtime. You have to spawn the widget using create widget node(usually done on player controller) and then add it to the viewport so the player can see it.

2 Likes

Thanks, I think this is the way:

This is the widget:

image