Search Unity

Can use cached Addressable Asset in offline?

Discussion in 'Addressables' started by dd_ss, Dec 10, 2018.

  1. dd_ss

    dd_ss

    Joined:
    Dec 4, 2018
    Posts:
    3
    Hello.

    I use Addressables System "preview-0.3.5".

    I would like to use cached Addressable Asset in offline.
    Because our project caches the downloaded Addressable Asset from the network and then uses cached Addressable Asset.

    Currently, when launching the project in offline, the following warning appears.


    Addressables - initialization failed.
    UnityEngine.AsyncOperation:InvokeCompletionEvent()


    Can anyone please help me who knows this?

    I am sorry if my English is difficult to read.
    Thank you.
     
  2. gyx920820

    gyx920820

    Joined:
    Oct 8, 2015
    Posts:
    35
    use 0.4.8 and try again
     
  3. dd_ss

    dd_ss

    Joined:
    Dec 4, 2018
    Posts:
    3
    Thank you for your teaching.

    Sorry to trouble you, can you tell me the function that makes it possible?
    I am not familiar with 0.4.8 because I have not been able to verify because of lack of skills...

    I tried 0.4.8 in offline briefly, and the following error appeared.

    Exception: RawDataProvider unable to load from url http://localhost/xxx/catalog_BuildScriptPackedMode.hash, result='Cannot connect to destination host'.
    UnityEngine.AsyncOperation:InvokeCompletionEvent()


    I will investigate the RawDataProvider from now.
    Thank you.
     
  4. gyx920820

    gyx920820

    Joined:
    Oct 8, 2015
    Posts:
    35
    In my test, this error also showed. But it doesn't matter. I can still download the hosted assets.
    Maybe you should read the manual carefully : https://docs.unity3d.com/Packages/c.../manual/AddressableAssetsHostingServices.html

    If you're Chinese, you can read this:https://gyx9208.github.io/Unity-Addressable/ .
     
    dd_ss likes this.
  5. dd_ss

    dd_ss

    Joined:
    Dec 4, 2018
    Posts:
    3
    When I tried it several times, it worked!
    The first trial seems to have failed because of a bug in the test code.

    Perhaps the setting of HostingServices seems to be irrelevant to Cache, and it worked just with a version up!
    I have not understood the mechanism well, but since the experiment was successful, I will try to use 0.4.8.

    I am very grateful to you.
    Great Thanks!