Search Issue Tracker
Won't Fix
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
- [Android] Audio sound is lower in the Player compared to the native music player
- Feet slide and misalign when playing retargeted animations
- IndexOutOfRangeException is thrown in NativePassCompiler when a graphics buffer is used in more than 5 render passes
- "Undo Stack Overflow" error is thrown, and Undo History is deleted when multiselected GameObjects are reparented to their GrandParents
- SearchColumn of type "ObjectReference" does not get refreshed for the custom SearchProvider when lighting generation finishes
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.