Unity Issue Tracker - Script compilation is not triggered when modifying Scripting Define Symbols outside the Editor
Closed
UUM-26576
Script compilation is not triggered when modifying Scripting Define Symbols outside the Editor
Unity: Scripting
Won't Fix
2020.3.X
Unfortunately, this wont be fixed as only 2020.3 is impacted and there is a workaround: please refrain to edit the project settings asset file manually, or make sure to manual trigger script compilation if you do so.
Reproduction steps:
1. Open the “TestScriptingDefine“ project
2. Open “Project Settings” and make sure “Scripting Define Symbols” contains “MY_FEATURE_ENABLED”
3. Close the project
4. Open “ProjectSettings/ProjectSettings.asset” and change “scriptingDefineSymbols:” from “1: MY_FEATURE_ENABLED” to “1:”
5. Open the project
6. Click the “Tools/Run Test” menu item
7. Observe the Console
Expected result: “Feature enabled: False” is logged
Actual result: “Feature enabled: True” is logged