Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

SpaceBar in Game Window in 5.3

Discussion in 'Editor & General Support' started by ev3d, Dec 15, 2015.

  1. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    Our game uses the space bar for controls. In 5.3, in the editor, if you hit the space bar the "Display 1, 2 etc" drop down of the 5.3 Game Window pops up and messes with the controls cause the game does not register the space bar up. Any way to fix this?

    What is that drop down for anyway?
     
  2. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
  3. DerrickBarra

    DerrickBarra

    Joined:
    Nov 19, 2013
    Posts:
    210
    I've noticed this bug as well, but I couldn't find a way to disable this from happening. Google-Fu doesn't show anyone else talking about this bug so far. Makes it impossible to test inputfields completely as you can't hit the spacebar.

    ev3d would you mind filing a bug report?
     
  4. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    what is that window for? i am at a loss to even describe what that drop down is... haha
     
  5. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    I submitted a bug anyway..
     
  6. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    Case 755092
     
  7. RicardoFerreira

    RicardoFerreira

    Joined:
    Jul 7, 2015
    Posts:
    1
    I'm new with Unity, but I'm having the same issue.
    How can I track this issue and check if someone has find a solution to it?
     
  8. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    i'm not exactly sure...
     
  9. NotASquid

    NotASquid

    Joined:
    Jan 20, 2016
    Posts:
    2
    Yeah this is really annoying me. Please someone find a fix for this. Everytime I jump in my game, the F***ing drop down menu comes up and screws up everything.
     
  10. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,198
    In my case, it's enter making the drop down show up. I've found that docking the game window somewhere else (in my case on another screen) fixes the issue temporarily.
     
  11. philjohnson3

    philjohnson3

    Joined:
    Aug 19, 2015
    Posts:
    1
    Wanted to confirm I'm seeing this on 5.3.2f1 as well. Very annoying.
     
  12. firebelly

    firebelly

    Joined:
    Apr 22, 2013
    Posts:
    12
    Super annoying.
     
  13. renaissanceCoder1

    renaissanceCoder1

    Joined:
    Apr 8, 2015
    Posts:
    127
    I was having some frustration with this and ended up coming with a work around. This may not be ideal for published work - but it does the trick while you are testing.

    Attach a script to your dropdown element first.

    In the script you should be using UnityEngine.EventSystems and implementing the IPointerEnterHandler and IPointerExitHandler interfaces.

    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3. using UnityEngine.UI;
    4. using UnityEngine.EventSystems;
    5.  
    6. public class DropdownScript : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler {
    7.  
    8. void Start()
    9.     {
    10.         dropDown = GetComponent<Dropdown>();
    11.         dropDown.interactable = false;
    12.     }
    13.  
    14.     public void OnPointerEnter(PointerEventData ped)
    15.     {
    16.         dropDown.interactable = true;
    17.     }
    18.  
    19.     public void OnPointerExit(PointerEventData ped)
    20.     {
    21.         dropDown.interactable = false;
    22.     }
    23. }
    Using this method, the dropdown will not be affected by other input unless the mouse is over the dropdown. Hope this helps.
     
  14. MudPuppet

    MudPuppet

    Joined:
    Aug 10, 2012
    Posts:
    162
    My own solution was to quit Unity and delete any of these files from the project folder and then relaunch Unity and load the project again. This seems to stay fixed.

    YourProjectName.sln
    YourProjectName.userprefs
    Assembly-CSharp-Editor.csproj
    Assembly-CSharp.csproj
     
  15. blackshtormx

    blackshtormx

    Joined:
    Oct 15, 2013
    Posts:
    15
    i found that, if you press "Maximize on play" button, then hit play, then pause and turn off this button, display dropdown will not appear
     
    lmikeselljr likes this.
  16. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    So this is still an issue I guess. Just started using 5.3.4 and experienced this bug for the first time. It's beyond annoying. It's preventing me from testing. Pretty ridiculous this stuff doesn't get caught in QA. Anyone know of a solution yet?