I’ve been trying to find a way for my UMG Widget that is added as a component to access other components attached to this player. So for example, I have a “HasHealth” component that maintains information about the current health of this object, and now I am attaching a “Widget” component that has a HealthBar I want displayed. This HealthBar needs to communicate with the HasHealth component to find out what the current health of the object is.
In my opinion, it should be something like this in the HealthBar widget:
“Get Owning Actor” -> “Find Other Widgets of Class: HasHealth” -> “Cast To: HasHealth” -> “Get Current Health” -> Return Health %
I’ve tried so many different combinations and haven’t been able to find one that works.