Create a grid in Unity of any width and height. I'll show you how to create a checkerboard pattern to better distinguish each tile as well as how to hover and select each individual tile.
Perfect for any tactics or turn-based game.
GridManager.cs: https://pastebin.com/cip74C4E
Tile.cs: https://pastebin.com/UD6zE467
=========
❤️ Become a Tarobro on Patreon: / tarodev
=========
🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6
🗨️ DISCORD: / discord
✅ MORE TUTORIALS: / tarodev
0:00 What we'll make
0:10 Creating the GridManager script
1:00 Creating the Tile prefab
1:30 Spawning the tiles
2:25 Centering the camera on the game map
3:30 Creating a checkboard pattern
5:35 Add hover and click events
7:07 Storing and getting the tiles via script