How to create a mesh for 2D maps with transparent parts, which is generated by software?
I create a game, like a Terraria, but unchanged (indestructible) a map that is generated by software. Map is a usual texture which has a transparent tunnels, through which the player must take place calmly. The entire map is made up of square blocks. I Do not know how to do it better. I tried to create collider box for each individual unit, but because of this game runs several times slower. Is it possible to create a single common mesh collider and how to do it? or there are other ways to solve this problem?
PS Sorry for my English, I used Google translator
Your answer
Follow this Question
Related Questions
How do you draw a sprite from an atlas on to a mesh? 1 Answer
Is it possible to draw primitive shapes on to a Texture2D? 1 Answer
Render transparent mesh over sprite 0 Answers
Applying one sprite/texture across multiple gameobjects. (2D) 0 Answers
How do I use a sliced 2D sprite as the repeating texture on a 3D object? 0 Answers