So, I’ve been developing this game for a friend, who owns a Mac, so I build my unfinished project so I can show her what I’ve made so far, which finishes without a problem. But then, I try to make a build of the same game for Windows, which is what my system is. I have done this plenty of times before, but this time, in the middle of building, it gave me an error and I had to Force Quit. Now when I load up my scene, I can still test the game in the editor, as it gives me no compiler errors, but whenever I try to make a build for Windows, it gets stuck on “Compiling Scripts” for a few seconds, and aborts with a “ding” noise. If I check my console window, it gives me the following errors:
Red Errors
- Assets/CubemapMaker/Source/CubemapMaker.js(59,17): BCE0005: Unknown identifier: ‘Asset Database’.
- Error building player because scripts had compiler errors
UnityEditor.HostView:OnGUI() - Exception: Error building player because scripts had compiler errors
UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions)(at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:367
Yellow Errors
- Assets/CharacterControllerScripts/AccellerationCharacterController.cs(6,17): warning CS0436: The type ‘CharacterMotor’ conflicts with the imported type ‘CharacterMotor’. Ignoring the imported type definition
- Assets/CharacterControllerScripts/AccellerationCharacterController.cs(6,17): warning CS0436: The type ‘CharacterMotor’ conflicts with the imported type ‘CharacterMotor’. Ignoring the imported type definition
Yes, it gave me one of the same errors twice.
How do I fix this? I have tried Uninstalling Unity, clearing the registry of any Unity Editor files, and reinstalling. I have also used the “Reimport all assets” feature in Unity to no avail. Is there any way I can solve this problem?