Packs multiple small textures in a single, bigger one. Helps to optimize video memory costs and render calls.
    public class AtlasTexture : Texture

Texture resource aimed at managing big textures files that pack multiple smaller textures. Consists of a Texture, a margin that defines the border width, and a region that defines the actual area of the AtlasTexture.

Inheritance Chain

Constructors

    public AtlasTexture()

Properties

    public Texture Atlas { get; set; }

The texture that contains the atlas. Can be any Texture subtype.

    public bool FilterClip { get; set; }

If true, clips the area outside of the region to avoid bleeding of the surrounding texture pixels.

    public Rect2 Margin { get; set; }

The margin around the region. The Rect2’s Rect2.Size parameter (“w” and “h” in the editor) resizes the texture so it fits within the margin.

    public Rect2 Region { get; set; }

The AtlasTexture’s used region.

Methods

    [Obsolete("GetAtlas is deprecated. Use the Atlas property instead.")]
    public Texture GetAtlas()

Getter for Atlas

    [Obsolete("GetMargin is deprecated. Use the Margin property instead.")]
    public Rect2 GetMargin()

Getter for Margin

    [Obsolete("GetRegion is deprecated. Use the Region property instead.")]
    public Rect2 GetRegion()

Getter for Region

    [Obsolete("HasFilterClip is deprecated. Use the FilterClip property instead.")]
    public bool HasFilterClip()

Getter for FilterClip

    [Obsolete("SetAtlas is deprecated. Use the Atlas property instead.")]
    public void SetAtlas(Texture atlas)

Setter for Atlas

    [Obsolete("SetFilterClip is deprecated. Use the FilterClip property instead.")]
    public void SetFilterClip(bool enable)

Setter for FilterClip

    [Obsolete("SetMargin is deprecated. Use the Margin property instead.")]
    public void SetMargin(Rect2 margin)

Setter for Margin

    [Obsolete("SetRegion is deprecated. Use the Region property instead.")]
    public void SetRegion(Rect2 region)

Setter for Region

Tags: