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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
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