Hi! I’ve added a simple health bar to my enemy character and am trying to put all the enemy logic in an ‘enemy’ Blueprint Actor Component that can be added easily to new characters.
My problem is that when I try to reference (and cast to) the User Widget Object from the main enemy BP it works fine (see below):
However, when I try to move that logic to my ‘enemy’ BP Actor Component, it fails to ‘Get User Widget Object’. It will print the correct Owner and Component by Class, but can’t seem to then find the User Widget Object?
Any help would be greatly appreciated!! Thanks!