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

Hereda: ResourceImporter < RefCounted < Object

Importa un archivo SVG como una textura automáticamente escalable para usar en elementos de la IU y renderizado 2D.

Descripción

Este importador importa recursos DPITexture. Véase también ResourceImporterTexture y ResourceImporterImage.

Propiedades

float

base_scale

1.0

Dictionary

color_map

{}

bool

compress

true

bool

fix_alpha_border

false

bool

premult_alpha

false

float

saturation

1.0


Descripciones de Propiedades

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 🔗

Si es true, utiliza compresión sin pérdida para la fuente SVG.


bool fix_alpha_border = false 🔗

If true, puts pixels of the same surrounding color in transition from transparent to opaque areas. For textures displayed with bilinear filtering, this helps to reduce the outline effect when exporting images from an image editor.


bool premult_alpha = false 🔗

An alternative to fixing darkened borders with fix_alpha_border is to use premultiplied alpha. By enabling this option, the texture will be converted to this format. A premultiplied alpha texture requires specific materials to be displayed correctly:


float saturation = 1.0 🔗

Overrides texture saturation.