Null Reference Error only in build game
Hello Guys, I'm really desperate right now because my game isn't working when I build it. When I built my game I get a Null Reference Error in the first scene as soon as I click on a button which is instantiated around 20 seconds after the scene starts.
This is so weird because in play mode everything works fine. I read about someone having this problem where unity used a different script execution order in build in comparison to play mode. This is where I get really upset. The script is not even recognizing a GameObject which is publicly set in the inspector. How is this possible!?
Since everything is working completely fine in Editor I refuse to somehow change all of my scripts since there has to be a solution?
Does someone ever encounter something like this? I really fear to loose my game on this. There is so little written about this problem. One guy just caught the NullReferenceErrors but I get errors all over the place even in the core unity UI scripts.
Hope someone can help me.
Your answer
Follow this Question
Related Questions
My builded game is resized! 1 Answer
Build failed with the following error 0 Answers
Build failed with errors all of a sudden?? 0 Answers
UWP Build issue 0 Answers