Unity version: 6000.0.28f1
OS: Windows (haven’t tried others)
How to repro:
- Create a new Universal 3D project
- Create a new C# file in the project
- Put some code in that file that’s only broken when outside of the editor. Example:
using UnityEngine;
public class NewMonoBehaviourScript : MonoBehaviour
{
#if !UNITY_EDITOR
NOT VALID CODE
#endif
}
- In the editor: File → Build And Run
Expected: the build fails and the errors show up in the console
Actual: the build fails and errors show up briefly in the console but they disappear really fast because there’s another build happening that clears the console
Edit: looks like if I uncheck “Clear on build” and “Clear on recompile” from the dropdown next to the “Clear” button in the Console, the errors remain. It still feels wrong to have to do that by default