Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Tazza08 · Jun 18, 2014 at 02:40 PM · gridnew

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!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image NoseKills · Jun 18, 2014 at 03:39 PM 0
Share

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?"

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by NoseKills · Jun 18, 2014 at 03:41 PM

Maybe my old answer to a grid placement question will give you pointers.

Answer

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Tazza08 · Jun 18, 2014 at 06:05 PM 0
Share

Wow... thanks!

this is fantastic, so would it just be a case of creating a drag and drop script from a UI?

avatar image NoseKills · Jun 18, 2014 at 08:07 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges