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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.