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
- Long Property names are not truncated in the Add Property dropdown in the Animation window when the Long Property name does not fit
- [iOS] High CPU load when device keyboard is open
- Selected Animation clip in the Animation window changes when the Domain Reload is triggered
- Animation window scrollbar keeps resetting when the scrollbar width is changed after adding an event
- LocalizationSettings.InitializationOperation hangs when re-entering Play Mode with Domain Reload disabled
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.