:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the AtlasTexture.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_AtlasTexture: AtlasTexture ============ **Inherits:** :ref:`Texture` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Packs multiple small textures in a single, bigger one. Helps to optimize video memory costs and render calls. Properties ---------- +-------------------------------+-------------------------------------------------------------+ | :ref:`Texture` | :ref:`atlas` | +-------------------------------+-------------------------------------------------------------+ | :ref:`bool` | :ref:`filter_clip` | +-------------------------------+-------------------------------------------------------------+ | :ref:`Rect2` | :ref:`margin` | +-------------------------------+-------------------------------------------------------------+ | :ref:`Rect2` | :ref:`region` | +-------------------------------+-------------------------------------------------------------+ Description ----------- :ref:`Texture` resource aimed at managing big textures files that pack multiple smaller textures. Consists of a :ref:`Texture`, a margin that defines the border width, and a region that defines the actual area of the AtlasTexture. Property Descriptions --------------------- .. _class_AtlasTexture_property_atlas: - :ref:`Texture` **atlas** +----------+------------------+ | *Setter* | set_atlas(value) | +----------+------------------+ | *Getter* | get_atlas() | +----------+------------------+ The texture that contains the atlas. Can be any :ref:`Texture` subtype. ---- .. _class_AtlasTexture_property_filter_clip: - :ref:`bool` **filter_clip** +----------+------------------------+ | *Setter* | set_filter_clip(value) | +----------+------------------------+ | *Getter* | has_filter_clip() | +----------+------------------------+ If ``true``, clips the area outside of the region to avoid bleeding of the surrounding texture pixels. ---- .. _class_AtlasTexture_property_margin: - :ref:`Rect2` **margin** +----------+-------------------+ | *Setter* | set_margin(value) | +----------+-------------------+ | *Getter* | get_margin() | +----------+-------------------+ The margin around the region. The :ref:`Rect2`'s 'size' parameter ('w' and 'h' in the editor) resizes the texture so it fits within the margin. ---- .. _class_AtlasTexture_property_region: - :ref:`Rect2` **region** +----------+-------------------+ | *Setter* | set_region(value) | +----------+-------------------+ | *Getter* | get_region() | +----------+-------------------+ The AtlasTexture's used region.