Skip to content

ITextureAtlas.TryGetRegion(string, AtlasRegion) Method

Definition

Namespace: Brine2D.Rendering.TextureAtlas

Attempts to retrieve a region by name.

bool TryGetRegion(string name, out Brine2D.Rendering.TextureAtlas.AtlasRegion? region);

Parameters

name System.String

The region name (typically the original filename without extension).

region AtlasRegion

The found region, or null if not found.

Returns

System.Boolean
True if the region was found; otherwise, false.