Good morning Aren,
please consider adding a group variable to the UICheckbox component, just as in UIButtonTween and its tweenGroup variable.
From the documentation: "If there are multiple tweens, you can choose which ones get activated by changing their group.". I would like to use this behavior for checkboxes too, so I can specify a group of checkboxes under the same parent.
My use case:
Each one of my prefabs has multiple checkboxes and they all share the same parent (radio button root). My hierarchy looks like this:
Panel (radio button root)
- Item 1
--- checkbox 1
--- checkbox 2
- Item 2
--- checkbox 1
--- checkbox 2
Desired behavior: checkbox 1 of Item 1 should be associated with checkbox 1 of Item 2. If I click on checkbox 1, it should send its state change to other checkboxes within the same group (1).
Current behavior: clicking on a checkbox sends a state change notification to all other checkboxes, be it checkbox 1 or 2. That's because they share the same radio button root. I instantiate the prefabs at runtime, re-parenting them to other transforms would be a mess, to say the least.
I am developing a package for the Asset Store that will require the paid version of NGUI, therefore I can't implement and distribute, as per license, a modified UICheckbox component in my package.
Thank you so much for your efforts and your consideration!