Tarodev | Create a grid in Unity - Perfect for tactics or turn-based games! @Tarodev | Uploaded May 2021 | Updated October 2024, 4 hours ago.
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: pastebin.com/cip74C4E
Tile.cs: pastebin.com/UD6zE467
=========
❤️ Become a Tarobro on Patreon: patreon.com/tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: discord.gg/tarodev
✅ MORE TUTORIALS: youtube.com/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
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: pastebin.com/cip74C4E
Tile.cs: pastebin.com/UD6zE467
=========
❤️ Become a Tarobro on Patreon: patreon.com/tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: discord.gg/tarodev
✅ MORE TUTORIALS: youtube.com/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