Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
236 views
in Technique[技术] by (71.8m points)

c# - Unity won't build an in-editor tutorial

at first, the game runs fine and playmode works correctly. when I click build (WebGL) the project starts building but a few minutes in it stops and throws those error (in the screenshot) out and suddenly the game won't enter playmode and I can't build anymore. what might be causing this?

it throw this error: Error building Player because scripts have compile errors in the editor

screenshot

EDIT: trying again:

ERROR 1: [19:33:41] (empty)

ERROR 2: [19:33:41] Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e) Copyright (C) Microsoft Corporation. All rights reserved.

ERROR 3: [19:33:41] (empty)

ERROR 4: [19:33:56] Error building Player because scripts have compile errors in the editor

ERROR 5: [19:33:56] Build completed with a result of 'Failed' in 4 seconds (3615 ms) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

ERROR 6: [19:33:56] UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <2f1c602eae0d45c293fff3e3aef759fa>:0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <2f1c602eae0d45c293fff3e3aef759fa>:0 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...