In the Unity running mode, an error is reported after modifying the code and saving it

The reason may be that the Unity preference setting is generally selected here as the first one, and it is recommended to choose the second one, and then recompile after the editor stops running
insert image description here

The meaning of the three options:

  1. Recompile and continue playing;
  2. Recompile after finishing playback;
  3. stop playback and recompile;

Guess you like

Origin blog.csdn.net/weixin_42205218/article/details/124924415