Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close Submission failedFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* Declarationpublic static
AssetBundle LoadFromFile(string
path);
Declarationpublic static
AssetBundle LoadFromFile(string
path, uint
crc);
Declarationpublic static
AssetBundle LoadFromFile(string
path, uint
crc, ulong
offset);
Parameters Parameter Description path Path of the file on disk. crc An optional CRC-32 checksum of the uncompressed content. If this is non-zero, then the content will be compared against the checksum before loading it, and give an error if it does not match. offset An optional byte offset. This value specifies where to start reading the AssetBundle from. ReturnsAssetBundle Loaded AssetBundle object or null if failed.
DescriptionSynchronously loads an AssetBundle from a file on disk.
The function supports bundles of any compression type. In case of LZMA compression, the file content will be fully decompressed into memory and loaded from there. See AssetBundles compression for more details.
Compared to LoadFromFileAsync, this version is synchronous and will not return until it is done creating the AssetBundle object.
This is the fastest way to load an AssetBundle.
Additional resources: AssetBundle, LoadFromFileAsync.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4