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

unsupported URL when loading asset bundles on IOS

Discussion in 'iOS and tvOS' started by monark, Jul 3, 2013.

  1. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    I'm trying to load an asset bundle in an IOS app using the WWW class.

    According to the Unity docs this is the path to where my assets are stored: Application.dataPath + "/Raw";
    This seems to be the same path that Application.streamingAssetsPath returns, so that makes sense.

    The asset bundles start life in the StreamingAssets folder and I can confirm that they are transferred to a raw data directory on the device.

    However when I use the path in WWW to load them I just get an error saying either "The requested URL was not found on this server" or "unsupported URL" depending on whether I prefix the path with "file://"

    Any ideas on how to get asset bundles loaded on the ipad using WWW?
     
  2. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    Arrgghhhh! Case sensitive file names. School boy error. Nothing to see here move along.....
     
  3. errormee

    errormee

    Joined:
    Dec 26, 2014
    Posts:
    4
    I encountered the same problem
    Any effective solution?
     
  4. errormee

    errormee

    Joined:
    Dec 26, 2014
    Posts:
    4
  5. saturn_guan

    saturn_guan

    Joined:
    Jun 18, 2016
    Posts:
    1
    [ERROR] [2016-06-18 02:51:43] LogicEngine.Loader.AssetsLoader : _LoadAssets:Error: Load asset error with url: /var/containers/Bundle/Application/C28225FB-0414-46C0-B43B-CF74C9C30C09/pszs.app/Data/Raw/buildtInAssets/modelAssetBundle/2D/ios/PlaneElem.assetbundle - unsupported URL
    i think i get the same error !! if you solved the Problem?
     
  6. alex_hajdu

    alex_hajdu

    Joined:
    Nov 10, 2013
    Posts:
    32
    Same problem here? Spent 2 days and tried everything :/ btw. : I'm using hi level API from AssetBundlesManager.
     
  7. TClear

    TClear

    Joined:
    Jan 6, 2017
    Posts:
    1
    "file://" + Path
     
    mgear likes this.