Search Issue Tracker
Fixed in 2021.3.25f1
Fixed in 2021.3.X, 2022.2.X, 2023.1.X, 2023.2.X, 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.
Comments (3)
-
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 2023.2):
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.
Resolution Note (fix version 2023.1):
Prevent script recompile in playmode when 'Recompile After Finished Playing' and 'AutoRefresh' are set
Resolution Note (fix version 2022.2):
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.
Resolution Note (fix version 2021.3):
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.