Skip to content

pixelriot/SVG2Godot

Repository files navigation

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

Releases

No releases published

Packages

No packages published