Editor script to import simple SVG files as standard nodes into Godot game engine.
- 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.
- many svg features cannot be represented with Godot nodes.
- curves in paths are simplified to lines.
- add the script SVGParser.gd to your project.
- create a new 2D scene.
- open the script in the Godot editor.
- Under file_path add the path to your svg-file.
- execute File -> Run.