Search Issue Tracker
Fixed
Fixed in 2021.3.25f1, 2022.2.17f1, 2023.1.0b14, 2023.2.0a11
Votes
32
Found in
2021.3.15f1
2022.2.0f1
2023.1.0a20
2023.2.0a1
Issue ID
UUM-20409
Regression
Yes
Script recompiles in Play Mode when Script Changes While Playing option is set to Recompile After Finished Playing and Auto refresh is set to enabled.
Reproduction steps:
# Open the user’s attached project “ReproProject”
# Open the “_Assets/Test.unity_” scene
# Navigate to “_Preferences/General/Script Changes While Playin_g” and set it to “Recompile After Finished Playing”
# Navigate to “_Preferences/Asset Pipeline/Auto Refresh_” and set it to _Enabled_
# Enter Play Mode
# Open the “_Assets/Test.cs_” script, uncomment line 11
# Save the script and return back to the Editor
Expected result: Script does not recompile in Play Mode
Actual result: The script recompiles while still in Play Mode
Reproducible with: 2021.1.0a8, 2021.1.28f1, 2021.3.15f1, 2022.2.0f1, 2023.1.0a20
Not Reproducible with: 2020.3.42f1, 2021.1.0a7
Reproducible on: Intel macOS 13.0.1
Note: Changing the Auto Refresh selection to “Enabled Outside Play Mode” seems to stop the recompilation in Play Mode.
-
vharutyunyan
Mar 29, 2023 00:30
Please address the issue ASAP and backport it to 2021. This is critical for fast iterations and debugging.
It is hard to believe that the issue has not been resolved yet after it was found in so many versions.Thank you Unity Devs for the hard work by the way. We know that this is just a prioritization issue.
-
benredgames
Mar 20, 2023 18:54
This issue is preventing us from migrating from the 2020 LTS to the 2021 LTS. This breaks a specific workflow for us. Hoping that this will be fixed in the 2021 LTS soon.
-
jg567
Mar 03, 2023 00:03
Would greatly benefit from having this fix in 2021.3 LTS, it's affecting the ability to iterate quickly with UI Toolkit and updating uss and uxml files while in play mode.
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 2023.2.0a11):
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.
Resolution Note (fix version 2023.1.0b14):
Prevent script recompile in playmode when 'Recompile After Finished Playing' and 'AutoRefresh' are set
Resolution Note (fix version 2022.2.17f1):
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.
Resolution Note (fix version 2021.3.25f1):
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.