ResourceImporterSVG๏ƒFree Courses

Inherits: ResourceImporter < RefCounted < Object

Imports an SVG file as an automatically scalable texture for use in UI elements and 2D rendering.

Description๏ƒ

This importer imports DPITexture 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 ๐Ÿ”—

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


Dictionary color_map = {} ๐Ÿ”—

If set, remaps 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.