Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.3
2019.3.9f1
2020.1
2020.2
Issue ID
1237465
Regression
No
Scripts are not automatically recompiled after changing the apiCompatibilityLevelPerPlatform in the ProjectSettings.asset
How to reproduce:
1. Open user-submitted project (new test ITuple.zip)
2. Open the Project Settings > Player window
3. Check that the Api Compatibility Level is set to .NET 4.x
4. Open the project's ProjectSettings.asset
5. Change the apiCompatibilityLevelPerPlatform value for Standalone from '3' to '6' and save
Expected result: the Api Compatibility level changes in the Editor, scripts are recompiled and an error is thrown
Actual result: Api Compatibility level changes in the Editor, scripts are not recompiled unless manually reimported/a build is started
Reproducible with: 2018.4.21f1, 2019.3.10f1, 2020.1.0b5, 2020.2.0a7
Could not test with: 2017.4.39f1(only a single apiCompatibilityLevelPerPlatform option)
Notes:
Restarting the Editor does not update the scripts after Api Compatibility Level change either
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
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
Resolution Note:
the editor recompiles the code when switching Api compability levels because it set the editor state as dirty manuially and there is no alternative for that when editing the ProjectSettings filed directly