I need to retrieve some AssetBundles that are stored on a remote server. This server requires authentication.
I have been looking into the AssetBundleManager
, which seems an easy way to do that. However, I can't find any way to provide the authentication credentials to the AssetBundleManager
.
So my question is this. Can I access AssetBundles in a server that requires authentication with the AssetBundleManager
or do I have to go another way?
In case the second is true. Is using UnityWebRequest
the only way to pass the authentication credentials in the header of the request?
EDIT: As requested in the comments I am using C#.
The authentication is token authentication (JWT) in the form of
Autorization header: bearer token