SVG2Godot Save

Import SVG files into Godot game engine.

Project README

SVG2Godot

Editor script to import simple SVG files as standard nodes into Godot game engine.

example

Features

  • import groups, rectangles, polygons and paths.
  • rectangles are imported as ColorRect nodes.
  • closed polygons are imported as Polygon2D nodes.
  • open polygons and paths are split into several Line2D nodes.
  • translation and style information is retained.

Missing features

  • many svg features cannot be represented with Godot nodes.
  • curves in paths are simplified to lines.

How to use

  1. add the script SVGParser.gd to your project.
  2. create a new 2D scene.
  3. open the script in the Godot editor.
  4. Under file_path add the path to your svg-file.
  5. execute File -> Run.

howto

Open Source Agenda is not affiliated with "SVG2Godot" Project. README Source: pixelriot/SVG2Godot
Stars
49
Open Issues
4
Last Commit
4 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating