Search Unity

EditorWindow - wantsMouseMove effect?

Discussion in 'Immediate Mode GUI (IMGUI)' started by Dom, Jan 11, 2010.

  1. Dom

    Dom

    Joined:
    Jul 10, 2007
    Posts:
    91
    I'd like to get notified (or have the OnGUI called) when the mouse moves over my custom EditorWindow (without buttons pressed). Therefore I set wantsMouseMove to true - but I can't see any impact.
    Is there something else to consider?
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    This should work, really. Can you post the code you are using?
     
  3. Dom

    Dom

    Joined:
    Jul 10, 2007
    Posts:
    91
    Thanks a lot for the feedback.

    Edit: need to think. but works so far. Used

    Code (csharp):
    1. Event.current.GetTypeForControl
    and this seem to have caused the problem.