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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
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.