运维开发网

错误码解决方案

运维开发网 https://www.qedev.com 2020-07-23 13:24 出处:网络 作者:运维开发网整理
编译时候提示错误: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 `U

编译时候提示错误: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

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号