Xlua 热更遇到的问题

 

问题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;
            }
 
————————————————
版权声明:本文为CSDN博主「mawentao8866」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/codywangziham01/article/details/82457665

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值