Search Issue Tracker
By Design
Votes
0
Found in
6000.0.63f1
6000.2.14f1
6000.3.0f1
6000.4.0a5
6000.5.0a2
Issue ID
UUM-129101
Regression
No
Color is incorrectly applied to objects when initialized with non-normalized parameters
How to reproduce:
1. Open the attached project "IN-125666"
2. Open "SampleScene"
3. Enter Play Mode
4. Select "UI" GameObject in the Hierarchy
5. In the Inspector, press "Test Stars" button
6. In the UI Toolkit Debugger window, select the first VisualElement under the "#starRating" VisualElement
7. Observe the shown color for "-unity-background-image-tint-color" in the UI Toolkit Debugger
8. Click on the shown "-unity-background-image-tint-color" color
9. Observe the color wheel
Actual result: Color is set to white but shows up as purple in the color wheel
Expected result: Color is set to purple
Reproducible with: 2022.1.0a1, 6000.0.63f1, 6000.2.14f1, 6000.3.0f1, 6000.4.0a5, 6000.5.0a2
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Workaround: Initializing new color using normalized parameters
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
- IndexOutOfRangeException occurs when entering "<a></a>" tags in a TextMeshPro UI field
- Numeric property drag cursor gets enabled in the Inspector Preview window when the window is above numeric properties
- UI elements become unusable due to Object and Text Fields being set to empty/"0" when clicking "Reset" on their Components
- Scene Asset is not attached to a Lighting Data Asset for a URP Package Sample Scene
- Gizmos are not rendered for the Base Camera when using Camera Stacking
Resolution Note:
When providing a C# Color, the values are expected to be provided in the 0-1 range. Other values are unlikely to work, and may show confusing data in both the VisualElements and the debugger. Using the Color(149/255.0f, 56/255.0f, 249/255.0f, 1) instead will be applied properly.