Search Issue Tracker
Fixed in 4.6.X
Votes
0
Found in
4.6.0b3
Issue ID
596026
Regression
No
Disabled Toggle Group messes up Toggles
Steps to reproduce :
- import the project attached
- open the scene "Toggle" and press play
- press Toggle 1 and Toggle 2 and notice it behaves as expected
- press the button to disable and re enable the group
- press Toggle 1 and Toggle 2 and notice they are broken
Comments (4)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Warning of an unknown Script missing is logged when selecting VFX in Play Mode
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
drobina
Jun 20, 2017 09:27
Still have this issue in 552p4
kjuanlu
Oct 31, 2014 08:37
In my case, I need to add the addComponent line inside OnEnable function to work:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class FixToggleGroup : MonoBehaviour {
public ToggleGroup toggle_group;
private Toggle toggle;
void Start () {
toggle = gameObject.GetComponent<Toggle>();
}
void OnEnable() {
toggle = gameObject.GetComponent<Toggle>();
toggle.group = toggle_group;
}
}
Thanks for the code snippet
omaha
Oct 30, 2014 09:30
// this script is helpful to work around the bug in the meantime
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class FixToggleGroup : MonoBehaviour {
public ToggleGroup toggle_group;
private Toggle toggle;
void Start () {
toggle = gameObject.GetComponent<Toggle>();
}
void OnEnable() {
toggle.group = toggle_group;
}
}
omaha
Oct 30, 2014 09:21
In which version of 4.6 is this fixed?
I can reproduce in b21.