I am currently trying to make a build of my game and I am about to lose my mind.
Here is the situation:
- My game works exactly as intended in the editor. No bug, no console errors, nothing. If that matters: it’s an arkanoid-type game, made as part of the unity 2d game developer course from GameDevTv.
- I made a WebGL build which worked perfectly fine.
- I realized I needed to change something in the game, so I went in my editor, made the change, and then made a new build. Everything worked fine in the editor. But the build does not work: for some reason, the ball does not launch from the pad when I click (intended functionality, which, again, works perfectly in the editor).
- I am using version control (unity Collaborate), so I went back to my last commit before I made the first build (which, as mentioned before, worked). Surprise: when I make a build from that point, it STILL does not work!
- I tried making a standalone build instead of a WebGL build. Same problem occurs.
- I went on several forum and reddit threads and tried the few things listed there: I disabled compression in the player settings, tried some other suggested settings, I quit Unity, restarted my computer, deleted the builds folder to start it again from scratch, tried any possible combination of these things, to no avail. Tried to change the script execution order for the build, no luck.
I am at my wit’s end and cannot for the life of me figure out what went wrong, especially seeing how even restoring my project to exactly what it was when the first build was made (and worked) also does not work! Anyone encountered similar issues, or has any idea of what could be causing this issue? Might have to do with some meta file which was altered with regards to the second build and not brought back to its original state despite my use of version control, but I do not know enough about that to know where to even begin looking.
ETA: I’m using 2020.1.11f1