xlua build时如何有效处理报错,避免长尾词问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计224个文字,预计阅读时间需要1分钟。
错误信息:`error: 'UnityEngine.Light' does not contain a definition for 'sgadowRadius' and no extension method 'sgadowRadius' accepting a first argument of type 'UnityEngine.Light' could be found (are you missing a using directive or an assembly reference?)`
解决方案:在`Generator.cs`中`GetGenConfig`方法里添加黑名单,代码如下:csharppublic static void GetGenConfig(IEnumerable check_type){ public static void GetGenConfig(IEnumerable check_type) { // 添加黑名单 var blackList=new List { sgadowRadius }; // 其他代码... }}
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 原文:blog.csdn.net/cai344205/article/details/83832544 版权声明:本文为博主原创文章,转载请附上博文链接!
执行xlua ->Clear Generator code ,再执行xlua ->Generator code
本文共计224个文字,预计阅读时间需要1分钟。
错误信息:`error: 'UnityEngine.Light' does not contain a definition for 'sgadowRadius' and no extension method 'sgadowRadius' accepting a first argument of type 'UnityEngine.Light' could be found (are you missing a using directive or an assembly reference?)`
解决方案:在`Generator.cs`中`GetGenConfig`方法里添加黑名单,代码如下:csharppublic static void GetGenConfig(IEnumerable check_type){ public static void GetGenConfig(IEnumerable check_type) { // 添加黑名单 var blackList=new List { sgadowRadius }; // 其他代码... }}
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 原文:blog.csdn.net/cai344205/article/details/83832544 版权声明:本文为博主原创文章,转载请附上博文链接!
执行xlua ->Clear Generator code ,再执行xlua ->Generator code

