Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2018.4.35f1
2019.4
2020.3
2021.1
2021.2
Issue ID
1338709
Regression
No
|| operator is not supported for define constraints in 2018.4 LTS
Reproduction steps:
1. Open the project in "PluginTesterProject2018.zip"
2. In the Project window select Assets/Plugins/Plugin Test
3. In Inspector delete all define constraints
4. Add define constraint named "DEVELOPMENT_BUILD || UNITY_EDITOR"
Expected result: there are no errors, the constrain is successfully added
Actual result: PrecompiledAssemblyException: Invalid define constraint DEVELOPMENT_BUILD || UNITY_EDITOR is thrown and the define constraint gets removed
Reproducible with: 2018.4.35f1
Not reproducible with: 2019.4.27f1, 2020.3.9f1, 2021.1.8f1, 2021.2.0a18
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
As the issue is only reproducible in 2018.4 we will not be doing anything further, as 2018.4 is out of support and will not receive anymore updates.
The issue is fixed in 2019.4, so upgrading to a newer Unity LTS will fix the issue. As a work around it would require having two assemblies with their individual target. One editor and one standalone. Then you would be able to put define constraints on them respectively.