ITextureAtlas Interface

Represents a texture atlas containing multiple sprite regions packed into a single texture. Reduces draw calls by batching multiple sprites that share the same atlas texture.

public interface ITextureAtlas : System.IDisposable

Derived
TextureAtlas

Implements System.IDisposable

Properties
Name Gets a unique name for this atlas.
RegionCount Gets the number of regions in the atlas.
RegionNames Gets all region names in the atlas.
Texture The underlying packed atlas texture.
Methods
ContainsRegion(string) Checks if a region with the given name exists.
GetAllRegions() Gets all regions in the atlas.
GetRegion(string) Gets a region by name. Throws if not found.
TryGetRegion(string, AtlasRegion) Attempts to retrieve a region by name.