Search code examples
unity-game-engineassetsaugmented-realityhololenshololens-emulator

Where to store large assets for Unity Augmented Reality game on Hololens


I have an app called 3Dhologirlfriend that can be deployed to the Hololens or Meta Augmented Reality devices. I have read that it is not good practice to store large assets in a Unity executable so we are looking to store the assets somewhere else and then download them at runtime. I have researched this a bit and found the concept of an asset bundle. My question is where to store this asset bundle so that it is secure and cannot be downloaded by anything other than the Unity app.


Solution

  • You can retrieve the asset bundle from a remote HTTP server using UnityWebRequest and AssetBundle. UnityWebRequest can be configured to work with HTTPS and client certificates.
    There are many places to host your file, the details of which are probably out of scope (AWS buckets, google firebase, self hosting a server, etc..).