Hi everyone, I have a question . if each button has an ID associated, how can I insert them into an array? and then how do I call it to print the results of the ids chosen by the button?
I think what you need is a Map instead of Array.
With Arrays, you can store a list of object or actor types.
Map is similar to arrays except each item must have a unique corresponding ID. You store or retrieve an item based on ID.
Here’s a guide about Maps.
You can add them to an array on Begin Play, but since the array elements are arranged by index, you won’t easily find the required one. But you can create the button array and work with it; thus you’ll be able to find the button you need and then get its ID.