ToggleGroup doesn't work = Bug?

Hi guys,

While trying out the new Unity 4.6, I was stuck with toggle group component.

Basically it just doesn’t work. I have created a new gameobject and add a toggle group component to it. I have assigned a group to all toggles, but it works like they’re not related to each other.

I have tried creating toggle group outside canvas and still I have same issue.

Documentation on new Unity UI is poor in content (including toggle group).

Any ideas?

Thanks in advance!

Switch to b20. They got broke in b21.

Toggle groups work in b21 but there does seem to be a bug where if the GameObject of the Toggle or ToggleGroup is set to inactive, the references to the ToggleGroup are made null. As a workaround, I re-register the ToggleGroup whenever I reenable the panel the Toggles live on (and the ToggleGroup was moved to a GameObject that is never made inactive)

exampleToggle1.group = exampleToggle2.group = exampleToggleGroup;

Assign the toggle group for every toggle in “OnEnable” method instead of static reference.

So, Im having that problem with unity 5.1, and not even setting the group by code is working… It turn the toogle button off doesnt matter where you click, doesnt matter which button you click (dont need even to be a toogle), even with the ‘allow switch off’ unchecked…
The ‘is on’ check box only works if you have a checked image also…

Do You add Your Toggle Group component to Your toggle components?
In the inspector of a Toggle it is just above OnValueChanged Event and the variable is called “Group” - just drag there game object from hierarchy which has the Toggle Group components. That way You can bind Toggle Element to different Toggle Groups.