Unity Issue Tracker - Errors are being thrown due to Conditional Compilation being ignored when building the Project
Closed
UUM-59987
Errors are being thrown due to Conditional Compilation being ignored when building the Project
Unity: Scripting Buildtime
As Designed
2023.3.X
2023.2.X
2022.3.X
2021.3.X
The failures was because of usages of Editor only API.
Normally the UNITY_EDITOR are not added to PlayerBuilds, but the project are setting that in the PlayerSettings and because of that are failing
How to reproduce:
Open the “Project MaNdur.zip“ project
Open the “Scene_Rumah“ Scene
Build and Run the project
Observe the Console window
Expected results: The Scene is built without errors
Actual results: Building the Scene results in Console errors