DNCGame

When I combine skin from 2 atlases (A, B), it supposes to be 2 materials in the renderer but I got 6 materials (A, B, A, B, A, B). Is there any way to solve this problem?.
DNCGame
  • Postovi: 1

Harald

Your draw order seems to requires atlas texture and therefore material switches, see the documentation page here:
spine-unity Runtime Documentation: Material Switching and Draw Calls
Solutions would be to:
  • change draw order and group attachments according to atlas texture
  • group attachments to atlas pages according to draw order
  • pack attachments to as few atlas pages as possible
  • repacking a skin to a new atlas texture at runtime as described here
Avatar
Harald

Harri
  • Postovi: 3905


Natrag na Unity