I have 2 actors within the scene that are the same and I want the UI to display their variables individually. For some reason, the UI is display the variables for 1 actor and not the other. Any help will be greatly appreciated I just don’t know how to bind instances of the same actor.
For some reason, the UI is display the
variables for 1 actor and not the
other
Your loop fetches the first actor from the array and exits immediately, it never has a chance to complete iteration. Even if it did (if you used the Complete pin instead), it still would not work. You’d be always displaying the last index in the widget.
Using All Actors of Class is by far the worst way of doing this.
Just to clarify, you want each object to have its own widget, right? Do you create the widgets inside the objects? Or?
It works! Yes, I was creating the widget inside of the weapon blueprint. For some reason, I relied on get all actors of class to bind my variables. I know this is bad as it can have an effect on the performance of the game. Thank you for your help!