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.

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.