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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.