问题1,编译打包时遇到
Assets/XLua/Gen/UnityEngineLightWrap.cs(723,60): error CS1061: Type `UnityEngine.Light' does not contain a definition for `shadowRadius' and no extension method `shadowRadius' of type `UnityEngine.Light' could be found. Are you missing an assembly reference?
解决方案,在 static cs的配置文件中添加黑名单,黑名单最好放到Edit 文件夹下。添加如下
new List<string>(){"UnityEngine.Light", "shadowRadius"},
new List<string>(){"UnityEngine.Light", "shadowAngle"},
问题2 报“please install the Tools”
没有把Tools安装到Assets平级目录,安装包,或者master下都能找到这个目录。
问题3 导入Tools 提示 ,system 和 system core重复导入
An assembly `System' with the same identity has already been imported. Consider removing one of the references
解决方案,把system的dll 全部删掉,如下
问题3 把Tools 文件夹导入到Asset 文件夹目录下还 提示 “please install the Tools”
原因在mac 下不识别路径 ./Tools/XLuaHotfixInject.exe 改成 Assets/Tools/XLuaHotfixInject.exe
文件在 Hotfix.cs 文件中的1615 行
var inject_tool_path = "Assets/Tools/XLuaHotfixInject.exe";
if (!File.Exists(inject_tool_path))
{
UnityEngine.Debug.LogError("please install the Tools");
return;
}