Search Issue Tracker
Fixed in 2021.2.X
Duplicate in 2021.3.X
Votes
4
Found in
2021.1.0a8
2021.1.0f1
2021.2
Issue ID
1325047
Regression
Yes
A false pop-up appears when modifying a script and having Recompile After Finished Playing set
How to reproduce:
1. Open the attached "1325047.zip" project
2. Open the Sample Scene
3. Go File -> Preferences -> General -> Script Changes While Playing and set "Recompile After Finished Playing"
4. Enter the Play Mode
5. Open the "script.cs" script
6. Modify the script and save it
7. Go back to the Editor
Expected results: No pop-ups appear
Actual results: A "Recompiling Scripts" pop-up appears
Reproducible with: 2021.1.0a8, 2021.1.3f1, 2021.2.0a13
Not reproducible with: 2018.4.34f1, 2019.4.23f1, 2020.3.4f1, 2021.1.0a7
-
stonstad
Mar 10, 2022 20:48
What is the delay in fixing this issue? Every time I change external code Unity reloads scripts -- and I have explicitly told the editor NOT to.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Tilemap.SetTile() does not change the tiles when called from Update() in the Player
- Custom Shader Material is pink when the project is built for the WebGL platform
- New 3D URP Sample Scenes Project is created with an invalid dependency on com.unity.render-pipelines.universal-config when creating the Sample Project for the first time
- Canvas Scaler causes abnormal scaling of Canvas elements in Play Mode when UI Scale Mode is set to "Constant Physical Size" and any Editor window is moved to a differently scaled monitor and is interacted with
- Touch.rawPosition always returns (0,0) when clicking or dragging anywhere on the screen in the Play Mode
Resolution Note (fix version 2021.2):
We are simplify the option to either allow auto-refresh during playmode or not. Reasoning is that there are two use cases for this: Artist who want to allow refresh during playmode so that he can go tweak textures in photoshop and see change when he switches back. Coder who either like to do the same (ie. change code and go back to see the changes) or like to change code without unity compiling/domain-reload when he re-focus the editor (instead prefers to press ctrl+r himself). The case we are removing is where switching back to the editor can refresh non-scripts, but script changes are handled after the user goes out of playmode. That case was really not aligned with how we reflect state from disk into the editor and is currently broken.