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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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.