Giter Club home page Giter Club logo

Comments (8)

daaoling avatar daaoling commented on May 13, 2024

还有

OSX命令行 cp /Applications/Unity/Unity.app/Contents/Managed/Mono.Cecil.* Project/Assets/XLua/Src/Editor/
Win命令行 copy UnityPath\Editor\Data\Managed\Mono.Cecil.* Project\Assets\XLua\Src\Editor\

实际路径应该是这个
/Applications/Unity/Unity.app/Contents/Frameworks/Managed

from xlua.

chexiongsheng avatar chexiongsheng commented on May 13, 2024

1、生成代码的好处是性能更好,反射的好处是对安装包影响更小,两者直接切换业务代码不用变,你可以随时根据需要调整下配置选择(比如某天你发现你的代码超过苹果的80M限制,你可以把一些性能要求不高的改为反射);
2、意思是我可以新增一个宏,要是打开之后就不看你有没打Hotfix,不分青红皂白全帮你注入;
3、打包时设置了HOTFIX_ENABLE并且执行了Generate cdoe,所有标识了Hotfix的类型都可以热补丁。不明白你说的“这样一来如果发布的时候那个c#类出问题了该怎么办呢?”
4、cp命令上面也有说明“可能Unity版本不同会略有不同”,改为你这个也会有人说路径不对。

from xlua.

daaoling avatar daaoling commented on May 13, 2024

嗯 第3点的意思就是万一没有打上hotfix标识的话 就只能在发布前干脆无脑全部标识了吗?
🙏车大的耐心解释

from xlua.

chexiongsheng avatar chexiongsheng commented on May 13, 2024

无脑全部标识会有开销,主要是安装包的影响,如果在能接受的情况下问题不大。
或者只把热更可能性大的部分打了,出问题的地方有hotfix就修复,没有就只好发版本了。按28原则,可能为20%的代码打了hotfix就可以解决80%的热更问题,呵呵。

from xlua.

zjwps avatar zjwps commented on May 13, 2024

希望可以设置一个宏,不用打hotfix标签,对所有类型都处理,只要没bug,我觉得挺需要这个东西,如果有这个宏,就可以把一个老项目,马上加上热更的功能。

from xlua.

chexiongsheng avatar chexiongsheng commented on May 13, 2024

@zjwps 提供宏很简单,但后续影响很难评估,我怕给用户做了错误的引导,一个公共库做加法简单,但加了之后就很难减了。

from xlua.

chexiongsheng avatar chexiongsheng commented on May 13, 2024

@zjwps 毕竟,手动都加加貌似也不是很费力的事情。目前Hotfix标签就有stateless和stateful的选择,这也是希望你要去考虑的。

from xlua.

zjwps avatar zjwps commented on May 13, 2024

@chexiongsheng 感谢回答,实用角度来讲,就算没有这个宏,个人肯定会写个工具来把一个文件夹的类全部加上标签。手动给每一个类或者大部分类加上hotfix标签还是挺不科学。

from xlua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.