Material Properties Batching

I know that Unity will batch objects that have the same material. But what if you have objects with different materials that all use the same texture?

In my case, I have an atlas texture that several different materials use. Each material simply has a different offset position to display the proper part of the atlas texture. Am I gaining any performance enhancements this way? Is there a better way to use an atlas texture to save on draw calls?

Thanks for the help.

  1. Whatever your assumption is, just test it out. It’s easy enough to open the stats window and look at the draw calls batching numbers.

  2. Different materials batching? No. You want to share a material/shader and set your UV coords in a different way. Check out this thread: http://forum.unity3d.com/threads/6699-Texture2D-PackTextures and look the Texture2D class in the docs.

Ok thanks for the info. I appreciate it.