Search Unity

how load server url assetbundle with offset?

Discussion in 'Asset Bundles' started by qcbf1, May 5, 2022.

  1. qcbf1

    qcbf1

    Joined:
    Nov 1, 2013
    Posts:
    25
    i try "AssetBundle.LoadFromFile("http...,0 ,24)" is invalid;
    i found "DownloadHandlerAssetBundle.GetContent", but it not found input offset param.
    use on WebGL/Android/IOS load assetbundle
    thank everybody help me.
     
  2. qcbf1

    qcbf1

    Joined:
    Nov 1, 2013
    Posts:
    25
    help. unity version 2021.3.2
     
    Last edited: May 19, 2022
  3. qcbf1

    qcbf1

    Joined:
    Nov 1, 2013
    Posts:
    25
    help+1
     
  4. qcbf1

    qcbf1

    Joined:
    Nov 1, 2013
    Posts:
    25
    help+2
     
  5. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    If you are downloading it from server, you can use HTTP Range header to only download part of the file. Note, that server has to support this.
    Otherwise you have to download the whole file, save it to disk and use LoadFromFile.