Hey there! as the title suggests i am using widget components in my AI and character blueprints, and i would like to be able to adjust variables on the widget component. at the moment i am having trouble casting to it or getting any sort of variables. thanks in advance!
The WidgetComponent acts as a container which is why you cant cast it to your Widget.
To get a reference to the Widget that is being presented by the WidgetComponent you have to call “Get User Widget Object”
If this helped you out please dont forget to mark it as the answer to this question
Thanks for posting this. I found this to be very helpful even 2+ years after the original post.
Worked for me
FYI I had a lot of trouble finding this function. I kept typing “get user widget” and this function wouldn’t show up in the list. I was about to give up when I typed “widget” without the get and it shows up then, even though it starts with get it wouldn’t show up if you type that. Not sure why.
Just posting this incase anyone else has the issue.
Thank you very much!
Super helpful, thanks
Even today, helped me a lot. thanks!