Cast to hud

I want to cast to hud from my character but I keep getting the same errorwhich says that it does not inherit from ‘HUD’ how would I fix this

Hi teoteote

Could you please post a screenshot of your code / blueprint please

Thanks

Alex

here you go

Hi teoteote

The object “Start” does not inherit from a HUD class, therefore the cast always fail (as the error suggests).

Good luck

Alex

How would i go about fixing this then

You need to ensure the object derives from the HUD class.

You can change an objects type from the “class” settings menu.

I highly recommend you check out Object Orientated Programming and explore more into casting.

There are probably some explanations on YouTube.

Good luck

Alex