Search Unity

Unity GUI Bug - mouse leave player area not handled properly

Discussion in 'Scripting' started by NYGhost, Dec 4, 2007.

  1. NYGhost

    NYGhost

    Joined:
    Sep 20, 2007
    Posts:
    55
    Hi all
    I believe I've found an unhandled event on GUI.

    when a slider is pressed and released outside the view area GUIUtility.hotControl is not set to false
    I cound not find any event on Unity that would tell me when the mouse leaves the view area :?

    Any workarounds?

    Code (csharp):
    1.  
    2. GUILayout.BeginArea ( Rect (100, 100, 120, 50) );
    3. GUILayout.HorizontalScrollbar( 0.5, 0.1, 0.0, 1.0) );
    4. GUILayout.EndArea();
    5.  
    thanks