- Home /
Grid Systems
Hi Guys,
This is my first forum post, i have been using unity for a couple of years now, learning as a hobbyist, im an engineer so i use alot of different systems so picking up the basics wasnt too dificult, and i make 3D models all day long so no problems there...
I have been through some tutorials on games, such as 2D platformer and other bits, and had a good go at C##, that im not picking up too fast...
At the min im trying to go through the basics of making a really simple Builder (theme/Sim) whatever you want to call it.
I have made a grid (10 x 10) with box colliders on and now i want to build blocks from NGUI onto these Planes, having searched for a while i was hoping someone could help me and just tell me what im looking to do next.
Raycasting seems to be the way forward but im struggling to find anything that is specifically what i need and since Raycasting is so braud i cant find any basic tutorials.
if anyone can shed some light on it for me i would be massively greatful, i also assume the next step after Raycasting would be writing an instatiate script?
thanks guys!
Welcome.
Forums are a better place to discuss alternative ways to program your game.
Answers is intended for more specific, reusable questions that have a "right answer", like "i'm trying to place a gameObject on a grid of colliders but it's not registering clicks. Here's my code. Whats wrong with it?"
Answer by NoseKills · Jun 18, 2014 at 03:41 PM
Maybe my old answer to a grid placement question will give you pointers.
Wow... thanks!
this is fantastic, so would it just be a case of creating a drag and drop script from a UI?
Sure. It's a pretty generic implementation of a 2D grid. Implement what ever kind of interface for placing stuff and for a nicer graphical representation of the objects themselves and you have a good start.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
2d tutorial help 0 Answers
C# Help Adding Component to Gameobjects from list 1 Answer
c# destroy gameobject on 0 hp 2 Answers
Making a grid.Help me understand. 1 Answer