I was wondering how i could “sort” a Texture2D into different “Tiles”.
I was thinking that you could create a 2D Array for maps, then make tiles according to position in the texture map and assign those to the different vales of the 2D Array. But i’m really stuck on this idea and needed some help with the code.
I was wondering how i could sort a Texture2D into different Tiles. I was
Share
I used an int[,] for the mapping of the textures, a different number in each part of the int[,] would signify a different texture, i would just use two for() loops using the GetLength() of the int[,].