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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution 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.