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
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
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.