2 Ways to Make 2D Map - Unity Tutorial #1
Today I show you 2 ways to make a 2D map for your unity game The first is the tilemap and the second is the repeating tiled sprites. The tilemap is best for maps that you need to procedurally generate or edit. The tiled sprites is best for static maps. Every tutorial that I could find on youtube while I was trying to learn how to make maps said to use tilemaps. However, I quickly realized that making a huge open world with a tilemap was going to be laggy. Also, having your world be cut in a ton of little squares takes a huge toll on your device, because it has to keep track of the position, rotation, scale and sprite of each tile. If you don't need to edit the tiles, it is useless for your device to do this. By instead taking a single sprite renderer and using it to repeat the sprite over a large area, your device only needs to keep track of 1 position, rotation, scale and sprite. That is going to improve performance a lot. Also, if you want to disable and enable map parts based on the player's position, disabling 1 sprite renderer is a lot more efficiant than disabling hundreds of tiles. Both type of maps can be improved in performance by disabling parts of the map that can't be seen by the player. Let me know if you want to see how. 0:00 Intro 0:28 Tilemap 7:16 Tilemap Pros 7:39 Tilemap Cons 8:20 When to use tilemaps 8:32 Repeating sprites 11:10 Sprites Pros 11:33 Sprites Cons 11:50 Conclusion --- Check out my website if you want to see and try the games I made: https://bit.ly/MaxMakesGames
Download
0 formatsNo download links available.