- Home /
Identical material with different textures
Hi,
Below is a text from documentation page I want to implement exactly the same thing for my iPAD app.
"If you have two identical materials which differ only in textures, you can combine those textures into a single big texture - a process often called texture atlasing. Once textures are in the same atlas, you can use single material instead. "
I created a AtlasTexture but I dont know how can I use it for UV mapiing in Unity. Any link/pseudo code/ example will be extremely helpful.. I am stuck on it for past few days now :/
Thank you....
I am using Unity iOS Pro...
EDIT: Here are the steps which I did:
(1) Created a Atlas
(2) Created a material with no texture on it
(3) In the code I get the mesh (which is a prefab in my case) and assign my newly created material to its material property.
am stuck on* (4) How can I map textures from AltasTexture to the texture of the material?