I have six UI buttons with the default OnClick() behaviour. Each button has 5 callbacks which are invoked when each button is pressed, accordingly. Here is the screenshot of 4 buttons next to each other to demonstrate what I am talking about:
As you can see, right now 4 of the callbacks are the same, but with different values passed. The 5th callback is identical for all the buttons.
What I would like to do is to remove the showBoxUI.SetAnimationTo from each button. I would do it by selecting all 6 buttons, clicking the 2nd element and then pressing the minus button to remove it. And while it removes it well from all 6 buttons, I am prompted with the following message:
Deleting an array element will copy the complete array to all… Unique values in the different selected objects will be lost
And when I press the “Delete” button, the 2nd element is removed from all the buttons, BUT all the different values on each button are set to the same value!
Why does that happen and is there a way of preventing it? How do I deal with that? Obviously, I don’t want to re-type each text every time I remove part of functionality from the buttons…
Thank you in advance.