Quantcast
Channel: Questions in topic: "assetbundle.loadasync"
Viewing all articles
Browse latest Browse all 39

Load AssetBundle from file outside of project

$
0
0
To open AssetBundle during game running in editor, I'm using following method: var filename = Application.persistentDataPath + "/static/" + Name; AssetBundle.LoadFromFile(filename); But during procedure get following error: Unable to read header from archive file: C:/Users/Developer/AppData/.../location UnityEngine.AssetBundle:LoadFromFile (string) LoadFromFileAsync returns same error. How can I fix this? Suggested methods, such as using WWW is marked obsolete. What's an actual way to do this correctly in 2023?

Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>