Search Unity

Unity editor - 3D geometry intersecting gizmo axis

Discussion in 'Made With Unity' started by Quazistax, May 23, 2011.

  1. Quazistax

    Quazistax

    Joined:
    Sep 12, 2010
    Posts:
    11


    Experimenting with idea of adding simple 3d axis lines (intersecting with scene geometry, to better visualize object's whereabouts in scene) dynamically to origin of any GameObject currently selected. The way I imagine it, it will run automatically on Unity startup and work in the background, without need to have custom EditorWindow displayed or manually attach scripts to GameObjects. Only requirement would be to put plugin scripts or dll in Asset folder.

    For now, it works in sync with editor's Pivot/Center and Local/Global settings, positioning itself in same point as default gizmo.
     
  2. GisleAune

    GisleAune

    Joined:
    May 16, 2011
    Posts:
    88
    Is it pro only?
     
  3. Quazistax

    Quazistax

    Joined:
    Sep 12, 2010
    Posts:
    11
    No, I use a free version.
     
  4. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
  5. Quazistax

    Quazistax

    Joined:
    Sep 12, 2010
    Posts:
    11
    Objects drawn with Gizmos.DrawSphere, Gizmos.DrawCube etc. will be drawn on top of everything, not intersecting with scene geometry. Intersecting is important, gives a feeling where something ends, how high/low it is etc. (that was the main motivation for me) Also, using OnDrawGizmos/OnDrawGizmosSelected requires to attach that script to every GameObject. My solution does not require that.
     
  6. deram_scholzara

    deram_scholzara

    Joined:
    Aug 26, 2005
    Posts:
    1,043
    Cool, I would totally use this =-)