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
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
- Solid gray or black areas are present when using ShaderGraph with Custom Function nodes without manual reimport
- The Multiplayer Play mode tool doesn't see the list of Play Mode scenarios when using 6000.3.x
- Input field does not update when selecting the same input field after previous input was canceled
- No warning thrown when modifying array size while editing multiple objects
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.