Search Unity

Editor Script - Placing objects

Discussion in 'Scripting' started by vincez, Aug 17, 2012.

  1. vincez

    vincez

    Joined:
    Aug 17, 2012
    Posts:
    23
    I'm working on an editor script to place objects in Javascript. Basically works but I can't figure out how to make a brush/cursor/blue circle on the object I'm placing objects on (like Unity terrain tool for planting). I have it working with a projector but that seems a bit lame. Have Googled for hours and can't find any reference. Not even sure if it's called a brush or cursor.

    Any help either script or even a link would be greatly appreciated.

    Thanks
     
  2. vincez

    vincez

    Joined:
    Aug 17, 2012
    Posts:
    23
    Can anybody at least point me to what I should be searching for?
     
  3. Loius

    Loius

    Joined:
    Aug 16, 2012
    Posts:
    546
    Sounds like you have it solved. There's Handles that display arrows and such, or there's projectors. Do you need some different kind of functinality?
     
  4. vincez

    vincez

    Joined:
    Aug 17, 2012
    Posts:
    23
    A projector would work basically, although it must be in the scene. I have noticed other asset packs that don't seem to use this kind of method (including unity terrain). So I was hoping to not use a projector and not have to reinvent the wheel for placing objects if it's already built in.

    Thank you.