I’m kind of new to Blueprint with UMG, so maybe my thought process is completely wrong here, but this is what I am doing:
Created a widget component named “DebugWidget”
Set the widget component class type to “DebugWidget”, which is just a simple widget with an image exposed as a variable.
Cast the widget component to my DebugWidget so I can retreive the image and change the color of it.
Step 3 is failing and I have absolutely no clue to why this would happen, unless if somehow the widget component holds a reference inside to the DebugWidget, without actually being it…
I have the same issue. I just need to get a variable and the cast fails every time (when the editor doesn’t crash, as it does every two minutes, for random reason like popping up the context menu in graph…)
I think the 3d widget is just broken currently and we will have to wait for an update.
If i have something new i’ll let you know.
Doesn´t have this “Get User Widget Object” option in my case. I´m trying to cast a widget from another widget, anyone maths with the option you mentioned.
This may help. Shows how to get widget references from other widgets. The trick is to find out where the widget was “created” and store it as a variable you can access from other BPs. I also explain the “get user widget object” node, as it isn’t clear from the above screen shot.
And If This Doesnt Work, Create A Widget (Add Component: Widget) IN The Enemy BP For Example, Then Assign That Widget That Widget BP Your Trying To Access, Then Use That Then Draw A Get User Widget Object Then Attach To Cast To That Widget BP, Then It Will Work, BRU!
Was Trying To Call An Int From A Widget Bp, To Check Which Death Anim The Enemy Should Play Upon Being Shot With The Right Character/Gun, Works, BRU!