Marklar
Marklar

Reputation: 21

Create Widget in Unreal Engine 4 blueprints not working?

I am trying to build an interface of my RTS, I want to create basic HUD with some buttons and time/date grid.

I have created widget blueprint and designed as I needed.

This is how I am trying to create HUD, get its reference and put it into variable for next use.

Image

This is how I am trying to add it to the viewport on the beginPlay.

Image

Everything is happening inside PlayerController. No widget is shown on the display.

Upvotes: 0

Views: 4131

Answers (1)

Protoss
Protoss

Reputation: 552

I tested and it works well using your way, UE4 version is 4.21. Let me know if that doesn't work for you.

enter image description here enter image description here enter image description here enter image description here enter image description here

Upvotes: 1

Related Questions