xlua 問題踩坑

在進行AssetBundle時,報了以下錯誤
Console截圖
具體報錯信息如下:
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"}

具體位置如下:
加入黑名單

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章