Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4
2020.3
2020.3.2f1
2021.1
2021.2
Issue ID
1326271
Regression
No
Toggle checkmark image is rendered after re-enabling the Image Component when Is On setting is set to false
How to reproduce:
1. Open the attached project
2. Open AbstractColorFilterToggle prefab
3. Select Checkmark in the Scene Hierarchy
4. Disable and enable the Image component
Expected result: The Checkmark image is not visible
Actual result: The Checkmark image becomes visible after enabling the component
Reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.3.2f1, 2021.1.2f1, 2021.2.0a12
Notes:
1. The issue will fix itself when entering play mode, reloading the scene, or prefab
2. The issue is reproducible when enabling/disabling the Checkmark GameObject
3. The issue is reproducible when the Toggle Is On is set to false in the saved Scene/Prefab
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
We dont have a mechanism to track the enabled state of the child image component. As the system works off changing the alpha of the CanvasRenderer to 0, and calling OnDisable resets the color back to 1, upon enable we dont have a callback to reset the state.
If disabling the image component is something the user needs they would be required to check the state of the toggle.