An easy tutorial on how to make a grid based building system in Unity. You don’t need to write a custom grid! The system works with standard Unity tilemaps. It implements grid snapping and placement checking. As an example, I used an isometric grid but it will work for any 2d grid.
Grid placement is a very common mechanic used in simulation games, tycoon and city builders, rpg and rts games. I developed this system when I was making my fantasy town simulation game Lost in Athilidus. In my devlogs, I share a lot of useful resources so you can learn how to make a game in Unity by yourself.
Support me on Patreon and get the source code – https://www.patreon.com/tamara_makes_games
0:00 Intro
0:24 How the system works
1:04 Setting up the project
3:28 Time to code!
12:28 How to make it better
14:18 Outro
You can use the code in your projects but you’re required to credit me (include link to this video)
Starting project
https://github.com/TamaraMakesGames/Grid-Building-System-2D
Final project with extra feature (smooth movement) available on Patreon
Lost in Athilidus Devlogs
————My Links————
💗 Patreon 💗
https://www.patreon.com/tamara_makes_games
⭐ Discord ⭐
https://discord.com/invite/dCJBpe2meg
🎮Games🎮
https://tamara-m.itch.io/
👍 Like and Subscribe! 👍
#GridBuilding #UnityTutorial
Source