Search Issue Tracker
By Design
Votes
0
Found in
2018.2.16f1
2019.4
2020.3
2021.2
2022.1
Issue ID
1103080
Regression
No
PlayerSettings.SetScriptingDefineSymbolsForGroup has inconsistent behaviour in batch mode
How to reproduce:
1. Download the attached file “1103080.zip” and unzip it
2. Run “<path to Unity.exe> -batchMode -buildTarget Android -projectPath <path_to_project> -executeMethod MyBuild.DoBuild -logFile android.txt -quit” in the command line
3. Download the attached file “1103080.zip” and unzip it again
4. Run “<path to Unity.exe> -batchMode -buildTarget iOS -projectPath <path_to_new_project> -executeMethod MyBuild.DoBuild -logFile ios.txt -quit” in the command line
5. Open the generated logs
Expected result: both platforms have the same amount of recompilations
Actual result: the amount of script recompilations is different depending on the platform set in the script
Reproducible with: 2019.4.34f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Notes:
- Change “<path to Unity.exe>” and “<path_to_project> / <path_to_new_project>” to paths where the Editor and the project is located
- Step 3 can be replaced by reverting changes using version control tools
- It’s not an iOS specific issue, the platform in MyBuild.cs can be changed to any platform
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:
This is expected, as some player settings require a script reload for the settings to be applied. So we will close this by design. We created documentation tickets to mention this behavior.