Git Product home page Git Product logo

unityhotupdate's Introduction

U3dHotUpdate

Unity3D 热更新

前提:
所有要更新的资源和文件都存放在Resources目录下
lua文件存放在与Assets同级的Lua目录下,打包时复制到Resources/Lua目录下
加载资源时,先检查热更目录是否有资源,有就加载热更新目录下的,没有就加载打包的Resources目录

资源发布流程(Android):
Game/AssetBundle/Build(Android)
打包对应平台的AssetBundle
Game/AssetBundle/Update(Android)
查找与上一个版本有差异的文件并打包成zip放到web目录(当前版本AssetBundle文件必须打包)
写入版本信息存到web目录

发布当前版本的包    

增加版本号    
	把Config.cs VersionInfo类的ver_res_android版本号增加    

热更流程: 向服务端请求最新版本号(版本号要递增并要处理多个版本的更新) 有更新: 下载新版本的压缩包(当前版本+1)并解压 写入新版本号

unityhotupdate's People

Contributors

mirahs avatar

Watchers

James Cloos 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.