Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

ResourceImporterSVG

Inherits: ResourceImporter < RefCounted < Object

Imports a SVG file as a scalable texture for use in 2D or 3D rendering.

Description

This importer imports SVGTexture resources. See also ResourceImporterTexture and ResourceImporterImage.

Properties

float

base_scale

1.0

Dictionary

color_map

{}

bool

compress

true

float

saturation

1.0


Property Descriptions

float base_scale = 1.0 🔗

SVG texture scale. 1.0 is the original SVG size. Higher values result in a larger image.


Dictionary color_map = {} 🔗

If set, remaps SVG texture colors according to Color-Color map.


bool compress = true 🔗

If true, uses lossless compression for the SVG source.


float saturation = 1.0 🔗

Overrides texture saturation.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.