This code plugin allows the editor to import SVG (scalable vector graphics) files as rasterized rendering or as (multi-channel) signed distance field.
The resulting texture asset can then be used normally in materials and displayed in the game.
SDFs (signed distance fields) can be used to import the vector file as texture with minimal size (e.g. 64x64 pixels), but can display sharp corners at any zoom level at runtime. This is perfect for crisp UIs and to save texture size (e.g. for mobile games).
Example project: https://tinyurl.com/SVGImporterExamples
★ Editor plugin
★ Supports importing as:
1. rasterized rendering (color texture)
2. multi-channel signed distance field
3. conventional signed distance field
4. pseudo-signed distance field
★ Supports automatic re-import on source file changes
★ Extremely fast rasterized rendering, even large SVGs of several MB are no problem
★ Imported textures have powers of two dimension (e.g. 64x64, 128x128, ...)
★ Automatically scales and auto-frames the SVG to the target texture size
★ Sources included
★ Supports Engine versions 4.11 up to 4.22
★ Should work on any platform (tested on Windows only)
Support and questions: firstname.lastname@example.org