Hello Guest

Author Topic: Fastest way to setup tiles for ios / mobile?  (Read 2980 times)

wightwhale

  • Newbie
  • *
  • Posts: 1
    • View Profile
Fastest way to setup tiles for ios / mobile?
« on: June 13, 2014, 10:38:07 pm »
I currently have around 8 tilesets going at any given time. I've been wondering what the optimal way to have the tilesets setup is. Currently the render.transparentgeometry is taking up the most time in my game. I have a few transparent tiles mixed in with the rest of the tiles from an area, is that going to hurt me if I have it setup that way? Is it better to have all the non alpha textures together and the transparent textures together or does it matter much? I was thinking there might be too much overdraw or something but I'm not really sure how the tilemaps are rendered inside of unity.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Fastest way to setup tiles for ios / mobile?
« Reply #1 on: June 13, 2014, 11:28:53 pm »
The tilemaps are just meshes, they are rendered like any other mesh in Unity. If you have a majority of solid tiles, you should certainly use a solid shader on them. You can use material overrides for this purpose. http://2dtoolkit.com/docs/latest/tutorial/multiple_materials_in_a_sprite_collection.html