Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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:
    19
    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:
    19
    help. unity version 2021.3.2
     
    Last edited: May 19, 2022
  3. qcbf1

    qcbf1

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

    qcbf1

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

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,637
    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.