Hololens Load AssetBundle Fail

Hello,

I use Hololens load asset bundle from “Assets/StreamingAssets/”, but the log : “Unable to open archive file: Assets/StreamingAssets/”.
Did Hololens2 was not supported by asset bundle?

Can you show the code you’re using? Are you loading from Application.streamingAssetsPath?

Sorry to reply late. I alse noticed the path that I can’t use the StreamingAssets.

I try to build the assetbundle to Application.persistentDataPath in editor, and I can see all my assetbundle in the path:C://user/appdata/…
But when I deploy to hololens, the logs shows: “Unable to open archive file: C:/Data/Users/datam/AppData/Local/Packages/UXML_p7fzp12tyxk7m/LocalState/…”.

What I want to know is whether the assetbundle in persistentDataPath will be contained in the hololens’s package?

PersistentDataPath will be empty when you first install the app. Unless you download the bundle to that path, it will not be there.

1 Like

Hi @guodan , did you manage to do it?

I’d like to load an Asset bundle on HL1 but don’t know how to make it work - any help would be much appreciated.

As what they said, you can download asset bundle from web server or upload asset bundle to you hololens’s app folder by manual through device portal.
7284829--880828--upload_2021-6-30_14-16-43.png