i have main Bp actor for enemy and i made 6 child out of it.
each one of them has “enemy attribute” which is a widget show the health bar as percentage and health value as text.
i used bind function on enemy attribute widget to decrease the current health and percentage for health bar ,
its works OK but when i have launched the game on mobile i noticed it makes too much draw call and hit the performance on mobile.
what i know about binding function on widget system ,its like an event tick so it will be calculate every frame.
so i tried to used event driven using dispatcher method . from this links
i did it for player character and it works great, however when i cast it to parent Bp (enemy actor)nothing happen because it has a child.
i can make it for every child an event dispatcher so i can call it then bind it in widget ,but what if i have 50 child or more.
how can i use event dispatcher “Drive UI Updates with Events” for parent Bp that has many child in enemy attribute “widget” (health bar and health number)?
appreciate your support
thank u all