AEBOKE

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

分类:

技术点:

相关文章: