I’m having problems casting into a UMG HUD.
My objective is get a X value from an AI character and display into the HUD.
I do with no problems with the player character, but when i’m doing with the AI, the HUD is not updating and I think is because of a bad casting. Doing some debug i verified the function i created (same as the player) is working fine and the only problem, like i said, is displaying the value into the UMG HUD.
So… what is the correct way to cast an AI in the Event Contruct of any UMG?
I solved my problem. After breaking my head with no success I decided to do the job using my game controller. It’s not like I have in mind but do the same.
Anyway, thanks for your help.
i want to cast a variable out of my UMG to my gamemode, how can i do that.
the only “get” from a cast object is “get gamemode” or “get character controller” etc…