Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Latest commit

 

History

History
31 lines (20 loc) · 1.1 KB

File metadata and controls

31 lines (20 loc) · 1.1 KB

This repo is no longer maintained. Check out this great project instead: EZ Curved Lines

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