Nine, AssetBundle unloading
1. Use: reduce memory usage. (If you uninstall incorrectly could result in loss of part of the resources)
2. Methods
(1) AssetBundle.Unload (false) {} using this method do not substantially
If there is a need to use AssetBundle.Unload (false) can only be two ways
【1】使用Resources.UnloadUnusedAssets。
[2] when the scene switches automatically invoked.
(2) AssetBundle.Unload (true) [method] Most projects use: Uninstall all the resources you need to ensure that resources are not being used.
Ten, file checksum
1. check three common methods: CRC, MD5, SHA1 (particularly self-understood principles)
2. The difference between the three check algorithm
(1) similarities: three algorithms are used to verify data integrity by generating a check value.
(2) differences:
Different algorithms [1] actually used.
[2] Different length check value generated. The CRC (16 or 32) MD5 (128 bits (16 bytes)) SHA1 (160 bits (20 bytes)).
[3] security different. SHA1> MD5> CRC
[4] different efficiency. CRC> MD5 and SHA1
Different aspects of the particular application [5]. CRC (checksum data communications); the MD5 and SHA1 (Secure check field (digital signature, file checksum)).
XI FAQs AssetBundle packaging resources and solutions
1. duplication dependencies
Solution: (1) the need for shared resources packaged together; (A and B share C, will be packaged together A B C)
(2) a portion of the shared resource packaged together; (A and B share the C, C will be packaged separately, A B separately packaged) (recommended approach)
2. Atlas repeat the question
The use of all objects assigned to the automatic programming texture resources inside the same texture.
3. Android texture problem
Use ETC 2
4. iOS document processing duplication
The official method of treatment:
(1) to reduce the amount of resources being used by merger-related resources;
(2) use AssetBundle.Unload (False) closed AssetBundle file, and then manually manage the life cycle of load objects.
Twelve, AssetBundle browser tool
Download address (git): https://github.com/Unity-Technologies/AssetBundles-Browser
(Specific use for reference Unity official document analysis tool)
end.....
I welcome attention to the micro-channel public number learning game development related to the exchange of knowledge. (Kuzz)