Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Accessing Cache folder

Discussion in 'iOS and tvOS' started by bpritchard, Dec 14, 2012.

  1. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    Hey all,

    We're working on getting hosted content working, and have run into a small issue. We're trying to access the cache location on the device and its basically always returning false when checking the data using System.IO. We're using Prime31's storekit plugin and all works great but the URL it returns seems like its not correct... we've tried the whole application.persitentdatapath and that also returns in correctly. Right now this is the path we're getting returned after the download is finished...

    file://localhost/private/var/mobile/Applications/847D716A-CF36-45C7-8B8D-DD5465D55875/Library/Caches/B82BCBC1-EBEF-4418-B886-C4CCCC99475E.zip/Content/addon_assets.unity3d

    but that returns false. Grabbed the files off the device and they do exist at that location. Anyone have any experience w/this?

    Cheers
    Brya
     
  2. thienhaflash

    thienhaflash

    Joined:
    Jun 16, 2012
    Posts:
    513
    It's been long, any updates on this ? anyone at @Unity is watching ?