Search Unity

Bug Unity possibly destroying my scene on reload, leading to null errors.

Discussion in 'Editor & General Support' started by TiggyFairy, May 16, 2023.

  1. TiggyFairy

    TiggyFairy

    Joined:
    Dec 22, 2019
    Posts:
    506
    Hello when I try to hot-reload, unity has started throwing null errors for every method that tries to run. A tool I have called Fast Script Reload says that unity is destroying either my manager scene or its own manager system on reload because of something to do with static variables? Either way, the problem persists with or without the tool installed. I'm not sure I understand it, but here's the error.

     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,938
    So are you triggering a domain reload during play mode? Your project has to be super specifically set up for this to work without issues happening, and 99% of projects are not.
     
    Kurt-Dekker likes this.
  3. TiggyFairy

    TiggyFairy

    Joined:
    Dec 22, 2019
    Posts:
    506
    Oh? I am actually. It was working before, but recently it just stopped. I guess I added something?