bug 1
- Type
UnityEngine.Light' does not contain a definition forshadowRadius’ and no extension methodshadowRadius' of typeUnityEngine.Light’ could be found. Are you missing an assembly reference?
-
找到在 Assets\XLua\Src\Editor\Generator.cs 中的方法
public static void GetGenConfig(IEnumerable check_types) -
在这个方法的BlackLIst黑名单新增这会导致报错的成员(原本是空的)
BlackList = new List<List>()
{
new List(){“UnityEngine.Light”, “shadowRadius”},
new List(){“UnityEngine.Light”, “shadowAngle”},
new List(){“UnityEngine.Light”, “SetLightDirty”},
}; -
生成并注入(Xlua/Generate Code、Hotfix Inject in Editor)
-
最后进行打包,成功