Skip to content
Discussion options

You must be logged in to vote

From the current AssetStudioMod source, I would treat SVG sprites as unsupported for Sprite preview/export.

The Sprite preview path resolves a Sprite to its atlas or SpriteRenderData.texture, gets a Texture2D, decodes that texture, and crops/flips it into an ImageSharp bitmap. The Texture2DConverter then switches over Unity TextureFormat values 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:

  1. The game contains a rasterized Texture2D/atlas generated from the SVG.

    AssetStudioMod can usually export the raste…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@deadmeater
Comment options

@yudin-s
Comment options

Answer selected by deadmeater
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants