Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Make own editor GUI window accept dragged objects from hierarchy panel

Discussion in 'Immediate Mode GUI (IMGUI)' started by eduwushu, Jul 4, 2011.

  1. eduwushu

    eduwushu

    Joined:
    Jul 4, 2011
    Posts:
    1
    Hi all!

    I wonder if there is a way to achieve that a custom editor window accepts gameobjects dragged from the hierarchy panel (without using a EditorGUI.ObjectField control). Just let the user drag a gameobject from hierarchy to a custom panel and make that panel detect the drag operation.

    Thanks a lot
     
  2. CraigGraff

    CraigGraff

    Joined:
    May 7, 2013
    Posts:
    45