Many phones and graphics cards can't load a picture bigger than 4096 × 4096, and a skeleton with many skins can have a much bigger atlas. Export to Game cuts such an atlas into texture pages no bigger than the Texture Page Size (Art > Bones > Texture Page Size, or Pages up to in the inspector; ⌃⌥⇧⌘E switches 1024 → 2048 → 4096 → 8192 → 16384; 4096 to start).
- The default skin's pictures, and pictures most skins share, go on shared pages; each other skin gets its own pages with what only it shows. A game then needs only the shared pages and the pages of the skin it draws.
- Each page is a sprite on its own texture page: page 0 is
spr_bones_<name>, the othersspr_bones_<name>_page1,_page2, …. - An atlas that already fits stays one page, as before. A single picture bigger than the page size gets a page of its own (the export message says so).
- The export message lists each skeleton's pages.
In the game, skel_set_skin(skel, "gold") loads that skin's pages ahead of drawing (global.bones_prefetch = false turns it off); bones_prefetch("hero", "gold") loads them earlier (in a loading screen), bones_flush("hero", "gold") unloads a skin's own pages when nothing shows it any more, and bones_skin_pages("hero", "gold") lists a skin's page sprites.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.