Skip to content

ITextureAtlasBuilder.AddFolder(string, string, bool) Method

Definition

Namespace: Brine2D.Rendering.TextureAtlas

Adds all textures from a folder to be packed into the atlas.

Brine2D.Rendering.TextureAtlas.ITextureAtlasBuilder AddFolder(string folderPath, string pattern="*.png", bool recursive=false);

Parameters

folderPath System.String

Path to the folder containing textures.

pattern System.String

Optional file pattern (e.g., "*.png").

recursive System.Boolean

Whether to search subfolders.

Returns

ITextureAtlasBuilder