Search Issue Tracker
Fixed in 2022.2.X
Votes
2
Found in
2018.4
2019.4
2019.4.27f1
2020.3
2021.1
2021.2
Issue ID
1339423
Regression
No
Build crashes when using UNITY_EDITOR macro that has variables inside in the base class
How to reproduce:
1. Open the user's attached project
2. Build and Run the Test scene
Expected result: build launches
Actual result: build crashes
Reproducible with: 2018.4.35f1, 2019.4.28f1, 2020.3.11f1, 2021.1.9f1, 2021.2.0a18
Notes:
1. Reproducible on Windows and MacOS
2. Issue is not reproducible after removing UNITY_EDITOR macros
3. Issue is not reproducible after fields from the base class are moved to the derived class
4. Issue is not reproducible when UNITY_EDITOR macro is empty
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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a4