Git Product home page Git Product logo

addressables-system's Introduction

Addressables-System

研究unity 的最新打包工具,并整合 多场景引用,及与 amf 序列化的相关工具进行 引用 关联

AddressableAssetsWindow: Window/Asset Management/Addressable Assets

AddressableAssetsSettingsGroupEditor: 为全局设置面板

感觉前面绕一大圈,只为了让其它开发者可以重写,或编译器与运行时的区别,

跟我以前的AssetManager差不多,只是看得很绕

#核心点:(把这部份重写掉就可以)

BuildContent.BundleBuildContent()

  1. AssetBundleBuild 主要为要整合在一起的单个包( 里面可以包含多个文件)
  2. 区分场景与普通资源
  3. 可以此处之前做依赖收集 (一般我会做各依赖引用数,当引用数大于1时,会把它创建为AssetBundleBuild,重走第一步)

ContentPipeline.BuildAssetBundles() 更细的底层如何收集信息写入打包

  1. BuildTasksRunner.Run();
  2. foreach IBuildTask.Run(); 一堆的Task,有一个不通过 就算不通过
  3. SwitchToBuildPlatform 是否要切换平台
  4. RebuildSpriteAtlasCache 调用了图集打包
  5. WriteSerializedFiles
  6. ArchiveAndCompressBundles
  7. ...

addressables-system's People

Contributors

crl avatar

Stargazers

 avatar

Watchers

 avatar

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.