点击Game->Build windows resorce时出现了几个错误,前面的步骤我都是按视频来的,
第一个错误:Assets/Scripts/Utility/Util.cs(479,17): error CS0103: The name `EditorApplication' does not exist in the current context
双击之后:
第二个错误:Assets/Source/LuaWrap/LightWrap.cs(580,28): error CS1061: Type `UnityEngine.Light' does not contain a definition for `lightmappingMode' and no extension method `lightmappingMode' of type `UnityEngine.Light' could be found. Are you missing an assembly reference?
第三个:Assets/Source/LuaWrap/LightWrap.cs(1084,7): error CS1061: Type `UnityEngine.Light' does not contain a definition for `lightmappingMode' and no extension method `lightmappingMode' of type `UnityEngine.Light' could be found. Are you missing an assembly reference?
第四个:Assets/Source/LuaWrap/MonoBehaviourWrap.cs(95,28): error CS1061: Type `UnityEngine.MonoBehaviour' does not contain a definition for `runInEditMode' and no extension method `runInEditMode' of type `UnityEngine.MonoBehaviour' could be found. Are you missing an assembly reference?
第五个:Assets/Source/LuaWrap/MonoBehaviourWrap.cs(143,7): error CS1061: Type `UnityEngine.MonoBehaviour' does not contain a definition for `runInEditMode' and no extension method `runInEditMode' of type `UnityEngine.MonoBehaviour' could be found. Are you missing an assembly reference?
第六个就一句话:Error building Player because scripts had compiler errors
第一个错误是因为没有引入using UnityEditor;的命名空间
后面的几个错误,大部分是由于版本问题,某些方法过时了导致的,你可以在学习ulua的时候,使用4.6学习哦