Unity talking about Assetbundle game resources

Source: Internet
Author: User

--just finished a xlua of the heat of the project, a summary of the classification of Assetbundle resources. Pure theory, gossip knowledge, if there is a suggestion, despite mentioning, not doping code.

--Here's how AB is packaged, if downloaded, how to load.

Keyword Understanding: Dependency, being dependent, public, non-public,.

1. How to pack?

Game resources, I here are divided into two major categories.

Resident Resources

I. Resident public resources (resources that must be loaded for the main interface atlas, background music, etc.)

||. Non-resident public resources (Battle interface Atlas, because there is only login game, not into combat situation)

Non-resident resources

|||. Often repeated resources

V. Other

2. Download resources?

Download resources, my side is the version file comparison to get the required download resources, nothing to say.

A picture that explains:

3. How to load?

The main thing is this way.

I. Priority of loading

The first load is the resident public resources,

Reload frequently and repeatedly resources,

Of course, if you go into combat (a specific module), you load very public resources.

Other resources are loaded when used.

II. Releasing Resources

Resident resources must not be unload (false), which frees up resources and frees other resources.

For unload (false), or unload (true) reference http://blog.csdn.net/tyzxhxl/article/details/44541429

Unload (false) is suitable for reuse of resources, once load, no longer requires load, and there is no "dependency" with other resources.

III Cache Resources

Generally, if the resources are reused frequently, it is best to cache the gameobject of AB as needed, such as bullets.

Unity talking about Assetbundle game resources

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.