Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Differences between game in editor and build

Discussion in 'Editor & General Support' started by rodgermccallister, Feb 1, 2021.

  1. rodgermccallister

    rodgermccallister

    Joined:
    Jan 23, 2021
    Posts:
    2
    Ok so I've just encountered a really strange bug. In one area of my game, when I pause (and only when the game is built), I can't navigate the UI with the d-pad of a connected gamepad. I know that the gamepad is working because I can navigate the menu normally with the left stick, just not with the d-pad and only when the game is built. Everything functions exactly as expected in the editor.

    What differences are there between the editor and the build of the game that could cause the difference in functionality? I've already ruled out the difference in framerate because I tried it with the framerate in the editor and the build both capped at 60 fps, so the difference in framerate isn't the problem. And again, the bug only occurs in one area of the game only when built and only when using the d-pad to navigate the menu.
     
  2. rodgermccallister

    rodgermccallister

    Joined:
    Jan 23, 2021
    Posts:
    2
    Ok I found the error, it turns out I had 2 EventSystems in the scene which was causing unexpected behavior that were fixed by deleting one of the EventSystems. I still dont know why there was anything different between the editor and the build, but it doesn't matter as much anymore.