Hello,
I am using Addressable package and Firebase Storage for my Unity Project. Firebase has given below code in their docs to generate downloadURL for assets stored in Firebase Storage.
// Create a reference from a Google Cloud Storage URI
Firebase.Storage.StorageReference reference =
storage.GetReferenceFromUrl(“gs://bucket/images/stars.jpg”);
// Fetch the download URL
reference.GetDownloadUrlAsync().ContinueWith((Task task) => {
if (!task.IsFaulted && !task.IsCanceled) {
Debug.Log("Download URL: " + task.Result());
// … now download the file via WWW or UnityWebRequest.
}
});
So in the case of Adressables, I need to set Remote Load Path as “gs://bucket/images/stars.jpg”. while execution , this will throw an error simply because its not a direct downloadURL.
My question is where and how do I integrate this code in Addressables system?
Thanks in Advance!!