Search Issue Tracker
By Design
Votes
0
Found in
4.6.0f3
Issue ID
652399
Regression
No
Calling SetColor or SetAlpha on the CanvasRenderers of the toggle's child objects, wrong toggle state is displayed
To reproduce this bug:
1. Open the attached project
2. Open 'test' scene
3. There is a script attached on toggle gameobject which:
-Sets toggle isOn to false
-Calls SetColor on the CanvasRenderer components of the toggle's child objects
4. Play the scene
5. The toggle inspector displays isOn as false, the Checkmark child object displays the enabled toggle
By Design:
"When we have a toggle the child element (the checkmark) the visibility is controlled by the canvasrenderer alpha. What you are doing is making the checkmark visible by fading the alpha in. What you should do is add a CanvasGroup to the root of the toggle and fade the alpha of that instead of the alpha on the individual CanvasRenderers."
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leaks occur when Shader with more than 128 keywords is compiled
- Player built for Windows silently crashes when UI Prefab is instantiated and Render Feature "Render Objects" is active in PC_Renderer Asset
- Crash on CollectUsedSceneObjects when making any modifications and saving in a Scene with a specific GameObject Component enabled
- VFX Graph Properties Transform has a click animation when clicked on the “Transform” text but the drop down does not open
- "Cascade Shadow atlasing has failed" errors are spammed when two Directional Lights with the Shadow Map are enabled and there is a 3D GameObject in the scene
Add comment