Giter Site home page Giter Site logo

我如果修改了打包方法,做了AB包加密,是否只能自己实现DefaultResourceHelper,无法实现加载进度条了? about htframework HOT 5 CLOSED

saitinghu avatar saitinghu commented on August 15, 2024
我如果修改了打包方法,做了AB包加密,是否只能自己实现DefaultResourceHelper,无法实现加载进度条了?

from htframework.

Comments (5)

SaiTingHu avatar SaiTingHu commented on August 15, 2024 1

对的,使用你自己的加载助手,实现接口IResourceHelper,如果想省事,可以直接从DefaultResourceHelper拷贝来所有代码,修改其中的加载AB包方式即可

from htframework.

zhangboyanzhangboyan avatar zhangboyanzhangboyan commented on August 15, 2024

原来LoadFromFileAsync提供了加载进度的参数,sorry

from htframework.

zhangboyanzhangboyan avatar zhangboyanzhangboyan commented on August 15, 2024

@SaiTingHu 好的,我已经改成了自定义的ResourceHelper,修改了LoadAssetBundleAsync的UnityWebRequestAssetBundle.GetAssetBundle方法

isManifest这个参数就用不到了,不会有什么影响吧

图片

from htframework.

SaiTingHu avatar SaiTingHu commented on August 15, 2024

isManifest表示是否是加载清单文件,如果不是(则为正式AB包),会使用hash值校验,这个应是UnityWebRequestAssetBundle特有的机制,你直接从文件Load包,应该是不需要这个校验过程了

from htframework.

zhangboyanzhangboyan avatar zhangboyanzhangboyan commented on August 15, 2024

好的,感谢

from htframework.

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.