How to transfer data from actor to widget?

Hello. I’m making jrpg system where I have main character and enemy actors. I need to create widgets in every enemy actor and place it in main screen. So for now I have a problem: how to get data from enemy actor in widget? I know that I should cast to enemy from widget but what should I connect to object wildcard pin?
image
If I would have only one enemy I could use just “get all actors of class” and get 0 element from it, but there can be a lot of enemy so what should I do with it? Every enemy can have different stats which I need to get in widget.

Firstly you’ll want to use an interface instead of casting.

In terms of getting the enemy reference it depends on how the widget is created, you could

  1. Put a widget component on the enemies?
  2. create the widget on the enemies itself and pass itself as Ref
  3. have some sort of combat manager that tracks all enemies and spawns 1 widget

just depends on what youre doing