- Home /
Question by
samz · Feb 16, 2013 at 02:40 PM ·
texturematerialoptimization
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?
Thanks
Comment
Answer by liszto · Feb 16, 2013 at 04:09 PM
You must create a texture atlas :)
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 : http://docs.unity3d.com/Documentation/ScriptReference/Texture2D.PackTextures.html
==> That can help you too but it doesn't rebuilt UV positing of your asset by himself opposite to EZGui atlas building tool : http://pastebin.com/bAz3KFPf