Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Customising the Scene View

Discussion in 'Scripting' started by Nigey, Aug 29, 2014.

  1. Nigey

    Nigey

    Joined:
    Sep 29, 2013
    Posts:
    1,129
    Hi Guys,

    I want to play with the scene view in the Unity Editor. I know you can customise the inspector, and you can customise the active camera in the editor.. but is there a way to make a 'custom scene view'?

    I want to emulate the Unreal's 4 perspective camera layout (AKA Maya/Max's layout too), with the same 'snap to grid functionality all those other programs have.

    I really want to see what I can make of this.. but from all the tutorials I see on the website they only mention customising the camera itself, or the inspector.. Never the scene view.. Can anyone help?

    Thanks!
     
  2. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    yup your sure can.

    So I'm not sure if you've seen it yet, but in classes that inherit Editor we have a nice function called OnSceneGUI ()
     
  3. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    from there you can do all sorts of things, you can use the Handles class to draw things like gizmos etc
     
  4. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    I often use it to make pretty level editors:
     
    Nigey likes this.
  5. Nigey

    Nigey

    Joined:
    Sep 29, 2013
    Posts:
    1,129
    You, my good man, are a genius. Thanks!