ITextureAtlasCollection.TryGetRegion(string, AtlasRegion) Method
Definition¶
Namespace: Brine2D.Rendering.TextureAtlas
Attempts to retrieve a region by name from any atlas in the collection.
bool TryGetRegion(string name, out Brine2D.Rendering.TextureAtlas.AtlasRegion? region);
Parameters¶
name System.String
The region name.
region AtlasRegion
The found region, or null if not found.
Returns¶
System.Boolean
True if the region was found; otherwise, false.