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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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