Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a pathing system that I am creating in Unity. When you add nodes to denote the path, I create a empty GameObject and render it in OnGUI as a square. The problem that I have is clicking on the object in the scene view. I am trying to figure out what would be the best way to click the Node, so that I can move and rotate the Node.

I had some ideas, like:

  1. Creating a Cube or some other GameObject with a mesh, and change the layer to Node. Then make the camera cull out the Node layer.

  2. Only in editor mode, create a temp asset and delete it before runtime.

  3. Do a raycast and see what objects are near the click, then pick the closest one.

I have a feeling that I am putting to much thought into it, and suggestions would be greatly appreciated!!

share|improve this question

It sounds like you want to extend the Unity editor. Looks like you can use the Handles class to create custom handles for your objects too.

share|improve this answer
Thanks, I remember the Handle class. that will work! – Hector Llanos Feb 27 '13 at 2:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.