Xlua发布工程出错

报错信息:

Assets/XLua/Gen/UnityEngine_LightWrap.cs(185,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?)

解决方案:

1.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"}

2.Xlua->Generate Code 重新生成一下代码

猜你喜欢

转载自blog.csdn.net/a451319296/article/details/111653852