Hiya,
I have built in addressables working to load scenes, but am having some trouble starting off with remote addressables.
Starting off I’m using default settings (I believe the default plus build remote catalog on and set).
The profile is still using the defaults:
And the relevant group
I’ve built the bundles, and try to access them with this, downloading dependencies for a scene from the remote bundle:
var key = "Quest_MiniChallenge_1";
Debug.Log ("Clearing Cache");
Addressables.ClearDependencyCacheAsync(key);
//Check the download size
Debug.Log ("Checking Download Size");
AsyncOperationHandle<long> getDownloadSize = Addressables.GetDownloadSizeAsync(key);
yield return getDownloadSize;
//If the download size is greater than 0, download all the dependencies.
Debug.Log ("Download Size: " + getDownloadSize.Result);
if (getDownloadSize.Result > 0)
{
Debug.Log ("Starting Download");
AsyncOperationHandle downloadDependencies = Addressables.DownloadDependenciesAsync(key);
yield return downloadDependencies;
Debug.LogFormat ("Is Done: {0}, Result: {1}, Status: {2}", downloadDependencies.IsDone, downloadDependencies.Result, downloadDependencies.Status);
}
However I get this as an error. I assume I missed something with the settings or am calling it incorrectly? Any tips would be greatly appreciated!