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

Detect empty space in EditorWindow

Discussion in 'Immediate Mode GUI (IMGUI)' started by CDF, Nov 12, 2015.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,303
    Hi, anyone have any suggestions on how to detect empty space on a mouse click within an EditorWindow?

    I'm dealing with objects that can be selected additively (Ctrl+Click, Shift+Click) And I need to know that when a user clicks that they aren't pressing on one of these objects.

    So I can't check if GUIUtility.hotControl == 0 as the hotControl may not be one of these objects