Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug (Case 1184172) Regression: Game View loses focus if mouse hovers over some editor UI

Discussion in '2019.3 Beta' started by Peter77, Sep 14, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    In playmode, Input.GetKey stops working if the mouse hovers over some editor UI controls, because the Game View loses its focus.

    The editor UI seems to steal the input focus from the Game View and Input.GetKey no longer works, until you click inside the Game View again.

    You can also observe that the highlighted tab changes.

    Reproduce
    • Open attached project
    • Open SampleScene
    • Press Play
    • Hold down F key
    • Move mouse over Console search field or Hierarchy

    Actual
    The input focus is stolen from the Game View and Input.GetKey no longer works.

    Expected
    Hovering over editor UI elements should not steal the input focus from Game View during playmode.

    Note
    I'm working on a first person shooter (keyboard/mouse controls) and this issue makes testing/playing in the editor very difficult, because input randomly stops working when moving the mouse.
     

    Attached Files:

  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    I was unable to replicate this problem in Unity 2020.1.0a3.
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    LeonhardP likes this.