Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Baroni

Pages: [1]
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!

NGUI 3 Support / [SOLVED]UI Label line break \n \\n
« on: July 17, 2013, 05:39:53 PM »

straight to the point: The typical line break on UI Labels doesn't work. I attached a screenshot of one of your examples named "Example X", running Unity version 3.5.5f2 or 4.1.5f1 and NGUI 2.6.3.

You can see the line break approach with \n in the image, however I searched on the forums and found that one should use \\n now, but that doesn't work either. Encoding checked or unchecked, same result. Please advice me how to proceed further, thanks.

Pages: [1]