Search Unity

Where is the cache path?

Discussion in 'Addressables' started by wechat_os_Qy08G2fonfCPUuakxg1HpvI9Q, Jul 31, 2019.

  1. wechat_os_Qy08G2fonfCPUuakxg1HpvI9Q

    wechat_os_Qy08G2fonfCPUuakxg1HpvI9Q

    Joined:
    Jul 29, 2019
    Posts:
    9
    There is a splash movie, it's very big, so I need to play the resources in the cache first, then update it, and I can play the new animation the next time I start. I want be able to get the cached resource with AssetBundle.LoadFromFileAsync() and then update it with Addressables.DownloadDependencies(). Does this method work?
     
  2. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    My best guess,

    Code (CSharp):
    1. List<string> cachePaths = new List<string>();
    2. Caching.GetAllCachePaths(cachePaths);
    3. cachePaths[0]; # Here it is.