Repository navigation
Help with SVG sprites #160
Replies: 1 comment 2 replies
|
From the current AssetStudioMod source, I would treat SVG sprites as unsupported for Sprite preview/export. The Sprite preview path resolves a So if the Unity project used SVG Importer or vector assets, there are two different cases:
The "pixel lines" atlas preview usually means you are looking at raw/packed/decoded texture data rather than a vector source. Try selecting/exporting the referenced Short version: AssetStudioMod may get you the rasterized sprite/atlas if the texture decodes correctly, but it will not preview SVG sprites as SVG or recover the original vector file unless that SVG is present as a separate raw/text asset. If this matches what you are seeing, please mark the answer as solved. |

From the current AssetStudioMod source, I would treat SVG sprites as unsupported for Sprite preview/export.
The Sprite preview path resolves a
Spriteto its atlas orSpriteRenderData.texture, gets aTexture2D, decodes that texture, and crops/flips it into an ImageSharp bitmap. TheTexture2DConverterthen switches over UnityTextureFormatvalues such as RGBA32, DXT, ETC, ASTC, PVRTC, Crunch, and similar raster/compressed texture formats. I do not see an SVG/vector decoder in that path.So if the Unity project used SVG Importer or vector assets, there are two different cases:
The game contains a rasterized Texture2D/atlas generated from the SVG.
AssetStudioMod can usually export the raste…