|
在进行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"}
复制代码 具体位置如下:
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|