xlua build时 报错处理

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

上一篇:深度学习-RMSprop、Adam


下一篇:01:xlua