Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(197评价)
价格: 4431.00元
ulua点击Build windows Resorce报错
heng发起了问答2017-06-07
4
回复
3613
浏览

点击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

 

所有回复
  • siki 2017-06-07

    第一个错误是因为没有引入using UnityEditor;的命名空间

    后面的几个错误,大部分是由于版本问题,某些方法过时了导致的,你可以在学习ulua的时候,使用4.6学习哦

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • sass00n1 2019-04-03

    unity搜索 ToLuaExport这个脚本,里边有个memberfilter的公开静态方法,在里边把你缺的错误提示填进去,"Light.lightmappingMode","Light.lightmapBakeType","MonoBehaviour.runInEditMode",然后回到unity清除wrap再重新生成一次。

    • sabi612 2019-05-01

      请问ulua最高支持Unity5.几呢? UGUI/NGUI最高支持版本是Unity5.0吗?

      (1) 回复
    还有-4条回复,点击查看
    你还没有登录,请先登录注册
  • 霸王丶 2019-04-13

    感谢大神

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!