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
The meaning of the three options:
- Recompile and continue playing;
- Recompile after finishing playback;
- stop playback and recompile;