Giter VIP home page Giter VIP logo

unity3dgameresource's Introduction

Unity3DGameResource

This is a Unity3d assetbundle API. (这里有unity3d加载assetbundle的api)

This plugin inclue all of the assetbundle loading method.(这里将所有Assetbundle加载方式都进行了API封装)

Email : [email protected]

Blog: http://www.luzexi.com (in chinese)

Load sync (阻塞加载)

1.Resource.Load
2.AssetBundle.CreateFromFile + AssetBundle.Load
3.File Read all + AssetBundle.CreateFromMemoryImmediate + AssetBundle.Load

Load async (非阻塞加载)

1.WWW + AssetBundle.Load
2.WWW + AssetBundle.LoadAsync
3.AssetBundle.CreateFromFile + AssetBundle.LoadAsync
4.File Read all + AssetBundle.CreateFromMemory + AssetBundle.Load
5.File Read all + AssetBundle.CreateFromMemoryImmediate + AssetBundle.LoadAsync
6.File Read async + AssetBundle.CreateFromMemoryImmediate + AssetBundle.Load
7.File Read async + AssetBundle.CreateFromMemory + AssetBundle.Load
8.File Read async + AssetBundle.CreateFromMemory + AssetBundle.LoadAsync

Interface description (接口描述)

1.WWW load function.
2.File load function. (include sync load and async load)
3.AssetBundle load function. (include CreateFromFile , Load , LoadAsnyc, CreateFromMemory , and CreateFromMemoryImmediate)
4.Resources stay load function. (the resources will storage in the memory if you not clear it)
5.Resources no stay load function. (the resources will not storage in the memory)
6.Resources load by unity3d api. (resources is load by Resources.Load)
7.ZipManager uncompress the zip file.

Example (示例)

All of the example in the example folder. (所有示例都在example文件夹里)

1.example1 : How to use AbRequest to load amount of assetbundle.

(如何使用AbRequest加载assetbundle)

2.example2 : How to use AbMgr to load amount of assetbundle. The difference between AbRequest and AbMrg is AbRequest will destroy the assetbundle when finished , but AbMrg not.

(如何使用AbMgr加载assetbundle。与AbRequest不同的是,AbRequest在加载完毕后会销毁Assetbundle,AbMgr不会)

3.example3 : How to use AssetBundleLoader.CreateFromFile load assetbundle. It's synchronize.

(如何使用AssetBundleLoader.CreateFromFile加载assetbundle,这是阻塞加载)

4.example4 : How to use FileLoader.ReadAllBytes + AssetBundleLoader.CreateFromMemoryImmediate to load assetbundle.

(如何使用FileLoader.ReadAllBytes读取文件并用AssetBundleLoader.CreateFromMemoryImmediate加载2进制成为assetbundle)

5.example5 : How to use AssetBundleLoader.LoadBinary to load assetbundle by byte[] in async.

(如何使用AssetBundleLoader.LoadBinary异步加载byte流成为assetbundle)

6.example6 : How to use AsyncLoader.StartLoad to load an Object from assetbundle.

(如何使用AsyncLoader.StartLoad从assetbundle中加载某物体,此为异步)

7.example7 : How to use FileLoader.AsyncReadFile to read file and when it finished use AssetBundleLoader.CreateFromMemoryImmediate to load assetbundle.

(如何通过FileLoader.AsyncReadFile 异步读取文件并使用AssetBundleLoader.CreateFromMemoryImmediate 加载bye流成为assetbundle)

8.example8 : How to use ZipManager to uncompress a zip file then use AssetBundleLoader.CreateFromFile to load assetbundle.

(如何将多个assetbundle打成zip的文件进行解压,并在解压后对其进行加载并呈现画面)

TODO

1.Encrypt assetbundle. (assetbundle 加密)

unity3dgameresource's People

Contributors

luzexi avatar kevinqiangk avatar

Stargazers

 avatar

Watchers

dingxiaowei avatar  avatar  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.