Unity Issue Tracker - 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.
Fixed
UUM-20409
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.
Unity: Asset - Database
Fixed
2023.2.X
2023.1.X
2022.2.X
2021.3.X
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.
Prevent script recompile in playmode when 'Recompile After Finished Playing' and 'AutoRefresh' are set
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.
Asset Pipeline: Prevent script re-compilation when 'Recompile after playmode' and 'Auto-refresh' are set.
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.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?