当前位置 : 主页 > 网络编程 > lua >

xlua build时 报错处理

来源:互联网 收集:自由互联 发布时间:2021-06-23
error trpe ‘ UnityEngine.Lighr ‘ does not contain a definiton for ‘ sgadowRadius ‘ and no extension method... 解决方案:在Generator.cs 中GetGenConfig 添加黑名单 public static void GetGenConfig(IEnumerableType check_type)
error trpe UnityEngine.Lighr does not contain a definiton for sgadowRadius and no extension method...

解决方案:在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"},
  };
...
 
}
--------------------- 
作者:cai344205 
来源:CSDN 
原文:https://blog.csdn.net/cai344205/article/details/83832544 
版权声明:本文为博主原创文章,转载请附上博文链接!

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

网友评论