0 votes
by (8.2k points)
edited by

When you enter game mode change and save a script in a external editor focus back into unity 
One of the following things occur.

  1. Unity crashes.
  2. Unity reloads/recompiles all scripts while the games playing and there are tons of errors and nothing runs correctly. Sometimes needing you to resave the file even after stopping game mode for unity to recover from its attempt.
  3. Panic to press the stop button before the recompilation finishes to avoid .

 

ago by
Association between fish oil supplementation and cancer risk according to fatty fish consumption A large prospective population based cohort study using UK Biobank <a href=https://fastpriligy.top/>priligy dapoxetine 60mg</a> Is their lab good

1 Answer

0 votes
by (8.2k points)
edited by
  1. No need for panic, just stop play mode, wait and start again.
    • Before playing any scene make sure you save the scene.
    • Wait for a few seconds after you press the play button.
    • The changes made during the play mode are not saved, while making any changes check that if you aren't in play mode.
  2. If that happens stop to modify code unless you know you can write correct code before saving. when you create an error and the code is passed through it will lead to an error if you are lucky and to an exception otherwise and cease the execution of the whole code block following.
  3. Can happen yes if it causes an exception that you didn't catch.

While playing the game First save by ctrl + s (for windows) or cmd + s (for mac) the game then wait for 2-5 sec then hit play it will load the game play without crash in unity.

TechXR runs courses in AR / VR / Metaverse / Game Development. Some of the popular Q&A in our courses are available here for easy discovery.

113 questions

117 answers

55 comments

105k users

...