首页 > 其他 > 详细

错误码解决方案

时间:2019-10-05 16:26:57      阅读:298      评论:0      收藏:0      [点我收藏+]

编译时候提示错误:1061

Assets/XLua/Gen/UnityEngineLightWrap.cs(723,60): error CS1061: Type `UnityEngine.Light‘ does not contain a definition for `shadowRadius‘ and no extension method `shadowRadius‘ of type `UnityEngine.Light‘ could be found. Are you missing an assembly reference?

 

解决方案:在Assets\XLua\Src\Editor\Generator.cs 中GetGenConfig函数中添加黑名单

 

public static void GetGenConfig(IEnumerable<Type> check_type)
{
...
BlackList = new List<List<string>>()
{
    new List<string>(){"UnityEngine.Light", "shadowRadius"},
    new List<string>(){"UnityEngine.Light", "shadowAngle"},
};
...

}


执行菜单xlua ->Clear Generator code ,再执行xlua ->Generator code

错误码解决方案

原文:https://www.cnblogs.com/AEBOKE/p/11624928.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!