Unity's roadmap stated that we should be able to import SVG in Unity 2018.2.
I have Unity 2018.2.3, but I couldn't use SVGs to Unity. Unity doesn't recognize they are sprites.
Please can anyone tell me how to import/use SVGs in unity.
SVG importer You import SVG files into the Unity Editor like any other assets. Either drop them directly into the Assets folder in the Projects window, or select Assets > Import New Asset from the menu bar. When imported, you can instantiate the resulting assets in the Hierarchy View or the Scene View.
EPS and SVG are both vector-based formats. While vector files are excellent for producing crisp graphics, drawings, and designs at any scale, they struggle to reproduce photographs. Raster-based files like JPEG, GIF, TIFF and PNG are better suited to photography.
There are 2 ways to add SVG support in Unity (other than building your own SVG rendering system or getting one from the Asset Store).
Which way you have to take depends on what version of Unity you are currently using.
In Unity 2019, click on the "Window" menu at the top left of the Editor. Then click on "Package Manager". In the menu that opens, click on the "Advanced" button around the upper right (left of the search bar). Click on "Show preview packages". This will allow you to see packages that aren't officially released (any versions less than 1.0) by Unity Technology. You should be able to find "Vector Graphics" in the list of package with a "Preview" next to its name. Click on it and click on the "Import" button in the lower right of the menu.
In Unity 2020 and later, Unity Tech. have removed the ability to see preview package in the Package Manager because of they had to waste in answering complex inquiries about those incomplete packages as many were adding them to their projects without either clearly understanding them or while thinking that they would have full support (which is not the case).
From Unity 2020 and forth, you got to manually type in a Git URL address to add any preview packages.
To type a Git URL address, open the Package Manage as I explained above, but instead of going with the "Advanced" and "Show preview packages", click on the "+" on the upper left of the menu, then "Add package from Git URL". This will open a small pop-up with a entry field and a grayed out "add" button.
For adding the Vector Graphics package, you got to type (or paste) in the following address:
com.unity.vectorgraphics
After this is typed in, you should be able to click on the "add" button and this will add the preview package to your project under the "In Project" category.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With