Search Issue Tracker
Won't Fix
Votes
0
Found in
2020.1
2020.2
2020.3
2020.3.29f1
2021.2
2022.1
2022.2
Issue ID
1404146
Regression
No
Unity Editor doesn't recompile at boot when Scripting Define Symbols are modified before launching
Reproduction steps:
1. Create a new project
2. Go to Project Settings > Player > Scripting Define Symbols and create 2 new Scripting Define Symbols (their naming is irrelevant) and press Apply
3. Open the Editor.log and search for "Recompiling all scripts because: Scripting define symbols setting modified" reported (as it should be)
4. Close the Editor
5. Open the ProjectSettings.asset file in the [PROJECT] > ProjectSettings
6. Search for "scriptingDefineSymbols" and remove one of the two Scripting Define Symbols that were created in step 2
7. Open the Editor again
8. Check the Editor.log again and search for "Recompiling all scripts because: Scripting define symbols setting modified"
Expected result: there is a log "Recompiling all scripts because: Scripting define symbols setting modified" in the Editor.log
Actual result: there is no log "Recompiling all scripts because: Scripting define symbols setting modified" in the Editor.log
Reproducible with: 2019.3.0b4, 2020.1.17f1, 2020.2.7f1, 2020.3.29f1, 2021.2.14f1, 2022.1.0b10, 2022.2.0a6
Not reproducible with: 2019.3.0b5, 2019.3.16f1, 2019.4.36f1
Notes:
- The bug was fixed in 2019.3.0b5
- Reproducible on macOS and Windows.
- In the stream 2022.2 and above instead of "Recompiling all scripts because: Scripting define symbols setting modified" log, there's "Requested script compilation because: Scripting define symbols setting modified", in older streams (e.g. 2020.1) it's "Recompiling all scripts because: Define symbols chanaged". The log varies depending on the version.
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
- [Android][Vulcan] "UNITY_DISPLAY_ORIENTATION_PRETRANSFORM" is always 0 when the render pipeline is URP
- Editor loads for a long time when doing an Undo action in a large Shader Graph
- Memory leak when building AssetBundles
- [Asset Bundle] AudioSource output field not staying connected correctly when loaded from Asset Bundle
- [Android] Duolashock4 controller is not detected after disconnecting and reconnecting controller while the Player is running in the background
Resolution Note:
Thanks for reporting this issue. After investigating it with all the active versions (2019.4, 2020.3, 2021.2, etc.) we have decided we will not be addressing this issue (at least for now). The reason is that while we do not log this in the Editor, the Project Settings window does pick up the changes (provided a Script Compilation happens). In the near future (possibly 2023.1) we will be looking at improving the Project Settings window as a whole, though.