メインコンテンツまでスキップ

Class YauiTextureAtlas

Settings of the dynamic atlas, which packs small sprites into shared textures so that more images are drawn in one draw call (like UI Toolkit's dynamic atlas). Changes apply to sprites added afterwards.

Assembly: Yaui.dll​
View Source​
Declaration
public static class YauiTextureAtlas

Properties​

Enabled​

Whether small sprites are packed at all.

View Source​
Declaration
public static bool Enabled { get; set; }

MaxSubTextureSize​

Sprites up to this size (in texels, both sides) are packed.

View Source​
Declaration
public static int MaxSubTextureSize { get; set; }

PageSize​

Size of an atlas page (a power of two). More pages are added as needed.

View Source​
Declaration
public static int PageSize { get; set; }