Create a grid in Unity - Perfect for tactics or turn-based games!

Published: 10 May 2021
on channel: Tarodev
252,489
5.7k

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


Watch video Create a grid in Unity - Perfect for tactics or turn-based games! online without registration, duration hours minute second in high quality. This video was added by user Tarodev 10 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 252,489 once and liked it 5.7 thousand people.