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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Cancelling Addressable LoadAsset operations

Discussion in 'Addressables' started by Allan-Smith, Jul 15, 2018.

  1. Allan-Smith

    Allan-Smith

    Joined:
    Feb 7, 2012
    Posts:
    57
    Hi,

    If I have a currently ongoing
    IAsyncOperation op
    , if I call Release() on it, would that stop downloading (if it was a remote asset) and clear everything, space allocated for the asset, memory, etc...?

    Best,
    Allan
     
  2. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    154
    Necroing this because its the first thing that comes up when googling this question, hopefully we can get a response
     
    Last edited: Nov 24, 2019
  3. Allan-Smith

    Allan-Smith

    Joined:
    Feb 7, 2012
    Posts:
    57
    Indeed would be good to know... I have stopped using addressables, to be honest since the time I made this question lol, at the time it seemed like the system still had some rough edges... switched projects and didnt need it anymore... but I am soon to need it again so well, if I find out the answer will be sure to post it around when I get to it.
     
  4. better_walk_away

    better_walk_away

    Joined:
    Jul 12, 2016
    Posts:
    291
    Does anyone know how to cancel Addressable LoadAsset operations? Addressables didn't have the cancelling method, we have to create on our own. But I am not sure how we could achieve that.
     
  5. funkyCoty

    funkyCoty

    Joined:
    May 22, 2018
    Posts:
    681
  6. therobby3

    therobby3

    Joined:
    Jan 30, 2019
    Posts:
    130