RecursiveFrog 发表于 2021-8-12 08:20

xlua 问题踩坑

在进行AssetBundle时,报了以下错误


具体报错信息如下:
Assets\XLua\Gen\UnityEngine_LightWrap.cs(173,39): error CS1061: ‘Light’ does not contain a definition for ‘SetLightDirty’ and no accessible extension method ‘SetLightDirty’ accepting a first argument of type ‘Light’ could be found (are you missing a using directive or an assembly reference?)
解决方案

找到Generator.cs脚本;在GetGenConfig 方法下添加以下内容:
            new List<string>(){"UnityEngine.Light", "shadowRadius"},
            new List<string>(){"UnityEngine.Light", "SetLightDirty"},
            new List<string>(){"UnityEngine.Light", "shadowAngle"},
            new List<string>(){"UnityEngine.Light", "shadowAngle"}具体位置如下:

页: [1]
查看完整版本: xlua 问题踩坑