3

This is the scene before the LoadScene() everything is normal enter image description here

And, after I collected all the yellow item I win the game and I click the GUI.button to try again (load the scene again) the scene is wraped like this enter image description here

And I get an error in my lighting component like this enter image description here

Boyce Cecil
  • 97
  • 2
  • 8

1 Answers1

5

This issue shouldn't occur in a build. In the Editor, however, it unfortunately occurs for unknown reasons. To resolve the issue, you can go to Window-Rendering-Lighting and click the Bake/Generate Lighting/Build button at the bottom. If the button is greyed out, you need to deselect the Auto option next to the button.

yasirkula
  • 591
  • 2
  • 8
  • 47