Cast to user widget "hud" Failing

Hello again, i just found out that my code isnt working properly beacuse Cast to hud user widget is failing and i cant find out why.



Thanks in Advance!

Hey there @AdrianMinecraft8! Are you referencing the cast that’s inside of the construct? I’d place a validated get before that to verify the HUD reference is valid first. Construct happens immediately so if the object just got spawned and the hud reference is not established before it’s first tick, that will always fail.

1 Like

Thanks for solving the mystery. The hud widget deconstructs and gets replaced with the win screen when triggered. Now it is obvious why it doesnt work.

1 Like