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
- Scene Views breaks and errors are spammed in the Console when the Game view is shrunk vertically to the minimum, and the Aspect Ratio is 16:9 or 16:10
- Slider Fill Area disappears after undoing “Set Native Size” change
- Crash with multiple stack traces when playing video on a render texture with low-end graphics devices
- Circle handle of the Game view scale slider bar disappears when the scale is set to 1x
- Asset Bundles non-deterministic behavior with CRCs and hash when a video has Transcoding enabled and Sprite Atlas has an override option enabled
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.