Search Issue Tracker
Fixed in 2021.3.25f1
Fixed in 2023.1.0b14
Votes
3
Found in
2021.3.0f1
2022.1.1f1
2022.2.0b16
2023.1.0a20
Issue ID
UUM-818
Regression
Yes
A false pop-up appears when modifying a script and having Recompile After Finished Playing set
Update/Note: we decided to revert this change as users were asking to return this option
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 - that means that Editor still recompiles scripts, but the Domain Reload is not happening which means that script changes don't apply until you exit Play mode
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 (3)
-
vcrn
Nov 03, 2022 16:47
Still an issue in 2021.3.12f1.
-
LegacySystem
Oct 10, 2022 11:22
I was shocked, there was lots of error when we updated to 2021.3.10. All the static field throws null exception. We were happy just the way it was. But unity just decided it was not working.
-
castor76
Sep 05, 2022 02:42
Solution for this problem introduced in 2021.3.9f1, which is to refresh asset changes only outside playmode is actually not a good idea because what we really want is to have option to have
"only" scripts to be auto refreshed outside playmode, but not the all other assets. This global option to make all assets to auto refresh outside playmode is bad because we do want auto refresh on assets like textures, audio etc, but just not on the scripts.We need this option back, and actually make it work if it was not working as intended. What my experience with this option was, the script did compile but was not actually reloading so which was really fine and was working as intended in practice in my opinion. Maybe the wording was wrong but what it was needed to do in practice was just fine.
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2021.3.25f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-20409
Resolution Note (fix version 2023.1.0b14):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-20409