Search Unity

Drawing and drag/drop objects in EditorWindow (like scene view) in 5.3

Discussion in 'Immediate Mode GUI (IMGUI)' started by Manato, Mar 21, 2016.

  1. Manato

    Manato

    Joined:
    Jun 11, 2015
    Posts:
    28
    Hi Developers,

    I would like to do my own little scene view in a custom editor window,
    like drag and drop sprites and models to manipulate them.

    Is it possible and how?
     
    Last edited: Mar 21, 2016
  2. skalev

    skalev

    Joined:
    Feb 16, 2012
    Posts:
    264
    It is possible. The how depends on your needs.
    In general, you'll be making an editor window, and working with its events during your OnGUI().
    You'll probably need a camera, one that will provide you with the rendering of your models / sprites.
    Controls around the scene view will move the camera to change viewing perspective.