Search Unity

Releasing an handle while it's loading

Discussion in 'Addressables' started by maxxa05, Jan 19, 2022.

  1. maxxa05

    maxxa05

    Joined:
    Nov 17, 2012
    Posts:
    186
    Do I need to handle the case of a release call for an handle that was not finished loading? I tried to test in Asset Database mode, and it seems that if a release happens while the handle is loading, the loading will end anyway with my assets being loaded, but the handle won't be valid anymore, which kinda is the worst of both worlds. I don't know if it's a bug for this mode or anything, but this seems to be a huge issue if addressables will just break silently and leak if a release happens too fast. I can't find any information on this subject, anybody has an idea?
     
  2. abogarsukov-braingames

    abogarsukov-braingames

    Joined:
    Jul 23, 2020
    Posts:
    40
    We had this issue as well, and the workaround is waiting for the operation to complete and releasing it right after. I'm not sure it this is still the case with latest Addressable version.