this is my widget component function. I dont know why but my code is failing to cast my widget and is not succeeding in casting the function from my widget
I think my fault was I didnt add the healthbar component in my unity component. so I added it after the sequence, and I made it a function so now it works and I dont want to touch it again.