:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ResourceImporterSVG.xml. .. _class_ResourceImporterSVG: ResourceImporterSVG =================== **Inherits:** :ref:`ResourceImporter` **<** :ref:`RefCounted` **<** :ref:`Object` Imports an SVG file as a scalable texture for use in 2D or 3D rendering. .. rst-class:: classref-introduction-group Description ----------- This importer imports :ref:`SVGTexture` resources. See also :ref:`ResourceImporterTexture` and :ref:`ResourceImporterImage`. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-------------------------------------+------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`base_scale` | ``1.0`` | +-------------------------------------+------------------------------------------------------------------+----------+ | :ref:`Dictionary` | :ref:`color_map` | ``{}`` | +-------------------------------------+------------------------------------------------------------------+----------+ | :ref:`bool` | :ref:`compress` | ``true`` | +-------------------------------------+------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`saturation` | ``1.0`` | +-------------------------------------+------------------------------------------------------------------+----------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_ResourceImporterSVG_property_base_scale: .. rst-class:: classref-property :ref:`float` **base_scale** = ``1.0`` :ref:`🔗` SVG texture scale. ``1.0`` is the original SVG size. Higher values result in a larger image. .. rst-class:: classref-item-separator ---- .. _class_ResourceImporterSVG_property_color_map: .. rst-class:: classref-property :ref:`Dictionary` **color_map** = ``{}`` :ref:`🔗` If set, remaps SVG texture colors according to :ref:`Color`-:ref:`Color` map. .. rst-class:: classref-item-separator ---- .. _class_ResourceImporterSVG_property_compress: .. rst-class:: classref-property :ref:`bool` **compress** = ``true`` :ref:`🔗` If ``true``, uses lossless compression for the SVG source. .. rst-class:: classref-item-separator ---- .. _class_ResourceImporterSVG_property_saturation: .. rst-class:: classref-property :ref:`float` **saturation** = ``1.0`` :ref:`🔗` Overrides texture saturation. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`