Ok, I have a toggle group with 3 toggles under it.
Now through code in OnEnable() of the UI, i check for Active Toggles.
But the problem is it gives me the active toggle only when the first Toggle is ON in the group and gives no active toggles when other toggles are ON under the same ToggleGroup!
And im getting the active toggle this way:
IEnumerable<Toggle> activeToggles = toggleGroup.ActiveToggles();
foreach(Toggle tg in activeToggles)
{
Debug.Log("active toggle"+tg.name);
}
Is this a bug? or am i doing something wrong here?