Search Issue Tracker
By Design
By Design in 6000.5.X
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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
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.
Resolution Note (6000.5.X):
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.