Search Issue Tracker
Won't Fix
Won't Fix in 2.0.X
Votes
0
Found in [Package]
2.0.0-preview.25
Issue ID
VGB-20
Regression
Yes
SVG with gradient has an incorrect color when imported as UI Toolkit Vector Image
How to reproduce:
1. Open the attached “IN-100520” project
2. Select the “button47” vector image in the Project window
3. Observe the preview in the Inspector and the image shown in the Game view
4. In the Inspector, change the Generated Asset Type to “UI Toolkit Vector Image”
5. Observe the result
Expected result: The colors of the image displayed in the Inspector preview and the Game view remain the same
Actual result: The colors of the image appear much darker/stronger and the gradient is barely visible
Reproducible with: 2.0.0-preview.25 (6000.0.3f1, 6000.0.49f1, 6000.1.0a5)
Not reproducible with: 2.0.0-preview.24 (6000.0.49f1), 2.0.0-preview.25 (2021.3.51f1, 2022.3.62f1, 6000.0.2f1, 6000.1.4f1, 6000.2.0b1)
Fixed in: 2.0.0-preview.25 (6000.1.0a6)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- There is a regression between package version 2.0.0-preview.24 and 2.0.0-preview.25, however, this issue is not present in Editor version 6000.0.2f1 and below or 6000.1.0a6 and above
- Also reproducible in Player
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
To have matching gradients, you will have to use package 2.0.0-preview.25 with 6000.1.0a6 or above, which includes a matching fix for VectorImages. If you want to stick to an earlier versions of Unity, you can use 2.0.0-preview.24, but you may hit another bug where the gradient texture is in the wrong format in linear colorspace projects. Sorry for the confusing situation.
Resolution Note (2.0.X):
To have matching gradients, you will have to use package 2.0.0-preview.25 with 6000.1.0a6 or above, which includes a matching fix for VectorImages. If you want to stick to an earlier versions of Unity, you can use 2.0.0-preview.24, but you may hit another bug where the gradient texture is in the wrong format in linear colorspace projects. Sorry for the confusing situation.