ManakhovN / FigmaToUnityImporter

The project that imports nodes from Figma into unity.
MIT License
493 stars 60 forks source link

Vector graphics #14

Closed eb0KrY4k closed 2 years ago

eb0KrY4k commented 3 years ago

Please add the ability to import in SVG format. https://docs.unity3d.com/Packages/com.unity.vectorgraphics@2.0/manual/index.html

ManakhovN commented 2 years ago

Please add the ability to import in SVG format. https://docs.unity3d.com/Packages/com.unity.vectorgraphics@2.0/manual/index.html

Added. Try it.

barnabe-perspectives commented 2 years ago

Hello @ManakhovN , The following error now appears since your last commit and i guess its related :

Library\PackageCache\com.manakhovn.figma_to_unity_importer@d4ecf1dfb5\Editor\ImageUtils.cs(5,13): error CS0234: The type or namespace name 'VectorGraphics' does not exist in the namespace 'Unity' (are you missing an assembly reference?)

I would say the problem is here : https://github.com/ManakhovN/FigmaToUnityImporter/blob/d4ecf1dfb5a9ec2858639fea1244bbc0585decf8/Assets/FigmaImporter/Editor/ImageUtils.cs#L5

This using clause should not exist when the user doesn't have VectorGraphics@2.0 in its dependencies.

ManakhovN commented 2 years ago

@barnabe-perspectives Oh, you are right. My bad. Pushed changes. Must be fixed now.