C++ UMG Change space World to space Screen

Hii,
I’m trying to create and display a widget in the screen space to make a floating poster at the top of the player

And I’m looking for a function that can do that:

271671-unknown.png

I obtained this screenshot when i add a widget component to my character, but how can i access variable like this one in C++ ? Im really stuck on this problem… :confused:

Easiest way is to simply declare widget component for character in C++, like any other component, then you can access it in C++ and set that variable. Alternatively you can use this function from character actor to get widget component

I tried but then it crash when i hit play on editor :confused:

271744-first.png