- Home /
Acces an imported SVG through script?
Hey, Is there anyway to access a SVG (Unity vector Graphics) file imported into the unity project and edit it from script? What I need is to access the list of shapes consitituting the svg and so something more with them), ideally save them as separate SVGs. But I cant just find a way to reference an svg in my assets through script. Unity class VectorGraphics.Scene is not exposable in Editor...
Here's vector graphics API, theres nothing about it.... https://docs.unity3d.com/Packages/com.unity.vectorgraphics@1.0/manual/index.html
I've seen the sample project by Unity, (https://github.com/Unity-Technologies/vector-graphics-samples) and they do manipulate vectors at runtime, but they are either creating them at runtime as well or using the SVGImporter, which I dont unterstand how it work ( seems like they are also creating a svg but from date saved in a string.....).
Any help would be welcome. Thanks
Hi @kala476 , did you find a solution ? Im having the same issue :)