Change SVGasset VectorGraphic at Runtime
Hello, I'm trying to figure out how to make a C# script that can make changes to SVG Image (Script) asset selection during runtime.
Now I figure the very rare amount of people have an SVG importer, so I think examples of something similar with RawImage textures may be able to help.
Comment
Best Answer
Answer by GmanGavin · Feb 23, 2018 at 10:49 PM
BodyC.vectorGraphics = (SVGAsset)Resources.Load("Character/Front/Body_1" );
This seemed to have worked, could've been compiling issues with my project files auto syncing with my NAS or the name/file.