texture/material optimization

i have a more than 10 png textures for buttons where more than 10 single materials will be shared. This obviously is not good for optimzation isit?

I heard you can pack your textures into 1 material?? Will that work? How do i do this?


You must create a texture atlas :slight_smile:

Some tools can do this for you like EZGUI (maybe NGUI too) or you can create your own tools of texture atlas creation.

==> That part of documentation can help you to do this by yourself : Unity - Scripting API: Texture2D.PackTextures

==> That can help you too but it doesn’t rebuilt UV positing of your asset by himself opposite to EZGui atlas building tool : Unity Texture Atlas Generator - Pastebin.com