Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
Votes
1
Found in
2023.1.0a6
2023.2.0a1
Issue ID
UUM-1584
Regression
No
SVG's are imported as grey rectangles when running the Editor in Batch mode
How to reproduce:
1. Open the user attached project (EmptyProject.zip)
2. Make sure that the "SampleScene" is open and the SVG images are visible
3. Build and Run the project and observe the SVG images in the scene
4. Close the Editor
5. Delete the "Library" folder and delete the existing build
6. Open the Linux terminal in the project directory
7. Run the following command: \[path to unity executable] -batchmode -quit -logFile - -nographics -projectPath . -buildLinux64Player ./Build/Linux/EmptyProject
8. Execute the resulting build and observe the SVG images in the scene
Expected result: the images are rendered correctly and the same in the Batch mode build as in the one performed from the Editor's GUI
Actual result: the images are rendered as grey or magenta rectangles in the Batch mode unlike in the one performed from the Editor's GUI
Reproducible with: 2020.3.30f1, 2021.2.18f1, 2022.1.0b14, 2022.2.0a8
Couldn't test with: 2019.4.35f1 (Build fails in Batch mode)
Reproducible on: Ubuntu 20.04
Not reproducible on: Windows 10
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
This problem is by design when using the vector graphics package to import svg.
In the package manual here,
https://docs.unity3d.com/Packages/com.unity.vectorgraphics@2.0/manual/index.html
it states that it has limitations against svg's using texture format importing with -nographics option.
SVG assets imported as “Textured Sprites” will need to create and render into RenderTextures, which won’t work with -no-graphics. Assets imported as “Vector Sprites” should work though.
Resolution Note (2023.2.X):
This problem is by design when using the vector graphics package to import svg.
In the package manual here,
https://docs.unity3d.com/Packages/com.unity.vectorgraphics@2.0/manual/index.html
it states that it has limitations against svg's using texture format importing with -nographics option.
SVG assets imported as “Textured Sprites” will need to create and render into RenderTextures, which won’t work with -no-graphics. Assets imported as “Vector Sprites” should work though.