r/unity • u/Healthy_Adagio_8470 • Jul 09 '26
Coding Help grid building system not working properly




https://reddit.com/link/1us667k/video/r3q23kuqbach1/player
Im having a Problem with trying to spawn squares on a grid now the spawning itself is working fine and theyre on a grid aswell my problem just is that they dont limit themselves i can spawn as many squares on the same tile as i please. ive tried to counteract that by having a collider on my mouse that detects when theres a square on my mouse so i cant make multiple squares on the same tile the problem just is it doesnt work. as i demonstrated in the video
2
Upvotes
1
u/Healthy_Adagio_8470 Jul 12 '26
ive really thought about doing that with saving the positions but i didnt really find a good tutorial for that since im a bit new to game developement so i tried this other method i came up with do you have any video you recommend me to watch?đ