Question by
le44vraimentpartout · Apr 17, 2021 at 02:13 PM ·
editorscript.compile
Script work perfectly in Editor but not in build.
Hello! When I compile the game In try to launch the game and all works perfectly except a script. When I open the player_prev.log I find this :
NullReference System.NullReferenceException: Object reference not set to an instance of an object at Player2.Update () [0x00000] in :0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
But in the line 35 there is just:`finish = true;` i know it's maybe not the 35th line of this script but I try.
Thanks.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613032433im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Need help to put together 2 scripts 0 Answers
How to see variables of child class with custom editor 0 Answers
How do i get List of all Planes GameObjects ? 1 Answer
Quiz Game Management 0 Answers
ArgumentOutOfRangeException is occuring when it shouldn't 0 Answers