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
- [Android] [Vulkan] Cubes stuck on the first few frames of rotation and application flickering when an Overlay Camera is added to the Camera Stack with MSAA enabled
- Profiling information icon does not update for Light Mode
- [Linux] Type to select functionality is missing for drop down menus
- TextMeshPro calculates Width Compression incorrectly when using certain values in the WD% field
- VFX Graph link contrasts fail WCAG guidelines
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.