In my scene the players spaceship can be attacked by enemy ships.
For each enemy attacking i would like to have a little UI-element right hand side which displays some information about the enemy and add some buttons where the player can select a certain enemy actor, attack it and more.
Since there might be a lot of information on these elements, I wanted to create a widget for that side-tab and in a sense parent it to my main UI.
I can of course just create the widget and add it to the viewport on eventBeginPlay on my enemy-actor, but then how would i align it to where I want it to be? can I pre arrange my sub-widgets in my main UI in a vertical Box and then possess it?
I have currently no Idea how to handle this.
Unrelated bonus question: Is there a node that returns the ID of the Actor? Basically the ID I would have to feed into the get-Array node when i work with the “Get All Actors Of Class” Node?
Im pretty new to this, so sorry if my questions are formulated weirdly.