xlua构建过程中如何有效处理错误信息?

2026-06-05 10:205阅读0评论SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计187个文字,预计阅读时间需要1分钟。

xlua构建过程中如何有效处理错误信息?

错误:`error: trpe '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方法中添加黑名单单行`public static void GetGenConfig(IEnumerable 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 原文:blog.csdn.net/cai344205/article/details/83832544 版权声明:本文为博主原创文章,转载请附上博文链接!

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

xlua构建过程中如何有效处理错误信息?

本文共计187个文字,预计阅读时间需要1分钟。

xlua构建过程中如何有效处理错误信息?

错误:`error: trpe '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方法中添加黑名单单行`public static void GetGenConfig(IEnumerable 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 原文:blog.csdn.net/cai344205/article/details/83832544 版权声明:本文为博主原创文章,转载请附上博文链接!

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

xlua构建过程中如何有效处理错误信息?