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
Comments (1)
-
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
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
- Unity Perforce Integration: VCS Connection Active State Fails via CLI with Valid Inputs
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.