3D Grid Building System - Unity Tutorial | City Builder, RTS, Factorio

preview_player
Показать описание
An easy 3D Grid Building System in Unity using tilemaps. Without custom grid! How to make grid snapping, building placement, rotations - in this tutorial.

In this video, you will learn how to make an easy grid building system in Unity3D which will be perfect for map building in city builders, real-time strategies (RTS), and Factorio like games. It implements object drag in 3D, along with snapping, automatic building size detection and it uses standard Unity tilemaps.
Can be used in any perspective: isometric, top-down, etc.

📂Assets Used📂

📚Useful resources📚

⏱️ Timestamps ⏱️
0:00 What this video is about
0:27 How the system works
1:50 What you need to know before starting
2:46 Part 1: Object Drag and Snapping
8:17 Automatic size detection
9:32 Part 2: Building Placement
14:44 Part 3: Rotations
15:58 How to improve the system
16:40 Outro

🔗 Relevant Links 🔗

————My Links————
💗 Patreon 💗
☕ Buy me a coffee ☕
⭐ Discord ⭐
🔷 Twitter 🔷

🎮Games🎮

👍 Like and Subscribe! 👍

#Unity #Tutorial #BuildingSystem
Рекомендации по теме
Комментарии
Автор

In what game would you use this system?

TamaraMakesGames
Автор

I really like your tutorials! I also wish they were more patient with the viewer! Like @6:56 there's barely a moment between the finished line of code and moving onto the next one. Links to previous videos when that information is presented would be helpful too. I got so confused in the first part when the white tile suddenly appeared. I took your advice and looked at the Unity API and found the answer. It'd be super helpful in the future to have links or annotations for anything related to the video but not covered in it!

Bdarkan
Автор

Hi, my system is not working like it shows on 8:16 of the video. Someone know why it could be??

NightEver
Автор

Great video
Your content is getting better and better
Keep up the great work 👌

alirzana
Автор

Tus videos son de increíble ayuda, greetings from Spain! <3 Love your content.

alejandroroa
Автор

Currently making a RTS game where there is a builder unit that can build things. I'm also watching a video about building nav meshes in realtime so that the units can easily move around the buildings. Thank you a lot for the video!

greenlightzone
Автор

This is sweet! Thanks for this Tamara!

MikeOlaoye
Автор

This grid building was an absolutely amazing base for me! Thank you so much!!

sparklycan
Автор

Hey, great tutorial!

I just had one question tho, is it also possible to make it so that let's say I am using this to decorate the inside of an house. To place things on tables and such? Like an object that has an elevation. (take PewDiePie sim for example, there you can place a table and then place other objects on that table but also on the ground, it just elevates on top of the object. Although in my case the tables are already there, I just need to place objects on it or on the floor)

sjonniesjonnie
Автор

Great job. Really high quality tutorial

lawlessgames
Автор

Great video! I'm wondering if it would be possible to have more than one collider? for example having an L-shaped building and needing two colliders for that, how would that work?

PrototypeDev
Автор

This is a great channel, informative and top tutorials

mikepoveyrulz
Автор

Hi, at 12:15 and in other points throughout the video, I really don't understand what is going on with these "v:Vector3Int"s and "x:" as I use Visual Studio Code and it doesn't seem to have this. If someone could explain as it's giving me errors when I add these and also when I remove them. Can someone help? It's a bit frustrating as I have no idea what the visual studio code equivalent to "v:" is.

Edit, these are called IDEs and in "v:Vector3Int", u just ignore the Vector3Int and type "var v in ..."

KazukiP
Автор

Thanks for another awesome video! Hope you're staying safe!

mumblekinz
Автор

I love you Tamara 🥰🤗thanks for amazing tutorial.

robertsteiner
Автор

Hii, nice video, thanks for the tutorial, I have an issue and I've seen a few comments and threats on the Discord server with the same issue, all works correctly BUT the function to know if the cell is empty or not (CanBePlaced()) seems to return always true, because of that, I can Place buildings over buildings infinitely, some help with that?¿

arnaumiragalltorra
Автор

Do you think this style of grid control would work with a hex grid?

ViralMenias
Автор

Is it possible to integrate this with the custom tilemap brush?

shakti
Автор

What if instead of selecting a prefab with a keyboard key, i want to select the prefab from a menu with my cursor? how would i implement that into my code?

hunneebunn
Автор

Hello maam.
Do you have a simple sitting on chair tutorial?Like there will be an arrow on top chair and when you click it you will sit on chair.
Thank you sir.

playfuljoker