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

  1. 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!

Comments (2)

  1. wendygunn001

    May 17, 2025 14:43

    LORD MEDUZA IS THE BEST SPELL CASTER ONLINE

    It's an honor to share my testimony with the world. You merit all the accolades that mention you. Lord Meduza has been a gift to me since our meeting online. He is the only one that knows everything about creating spells. I adore him immensely for his kindness, compassion, integrity, and the support he offers to everyone who interacts with him. Without Lord Meduza, I wouldn’t have survived this difficult situation. His magic turned me into a Lottery winner of £177 Million Pounds, transforming my entire life into something beautiful and extraordinary. The numbers he provided for the lottery were transformative, elevating me from grass to grace, and I want to express my eternal gratitude to him. Thank you, sir, for being a source of help to those in need. Anyone who reads this article and requires assistance can reach him through his Email: lordmeduzatemple@hotmail. com as he is unmatched in crafting spells.

  2. 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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.