Search Issue Tracker
By Design
Votes
0
Found in
2022.3.54f1
6000.0.30f1
6000.1.0a7
6000.2.0a1
Issue ID
UUM-90166
Regression
No
The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Reproduction steps:
1. Open the attached “IN-89959_Repro.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“
3. Check the hex code of the “Part4“ GameObject’s color in the Inspector
4. Select the “Ball“ GameObject in the Hierarchy
5. In the Inspector, check the hex code of the 4th element in the 'Color Arr' array of the Jump Script Component
6. Enter the Play Mode
7. Observe the Console logs
Expected result: Both colors are identical
Actual result: Colors are different even though Inspector shows identical hex codes
Reproducible with: 2022.3.54f1, 6000.0.30f1, 6000.1.0a7
Reproducible on: M1 Max MacOS 14.6.1
Not reproducible on: No other environment tested
Comments (1)
-
Emily60
Nov 30, 2024 13:01
Hi everyone I am Emily Naomi wanna give a big thanks to this wonderful psychic for bringing my husband back to me.. I never really believed in magic spells or anything spiritual but a trusted friend opened my eyes to the truth about life. My marriage was heading to divorce a few months ago. I was so confused and devastated with no clue or help on how to prevent it, till I was introduced to this psychic Priest Ray that did a love spell and broke every spiritual distraction from my marriage. A day later my husband started showing me love and care even better than it used to be, he’s ready to talk things through and find ways for us to stay happy. It’s such a miracle that my marriage can be saved so quickly without stress. You can also contact him for help by email psychicspellshrine@gmail. com
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
- "Errors during XML parse" warnings are thrown when building project for the Android platform
- Shader transparency, discard, and clip are not working when using the Player
- Error is thrown when clicking on warning in the console
- Long IL2CPP build time when project has a .ufbx library wrapper
- Cursor doesn't change to the resizing when using the Rect Tool and the Sprite is too close to the bottom of the Scene View
Resolution Note:
Hi, thanks for reporting this to us. I realize it looks like a bug but it is actually by design. Color comparison can be tricky due to floating-point precision issues. So, in general comparing the exact float values is not recommended. If you have to know if they are the same I'd suggest using a small threshold to do so.
I hope this helps. Best of luck with your project!