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

Is there a global "isLoading" API?

Discussion in 'Addressables' started by Peter77, Mar 23, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    I would like to query whether Addressables is currently loading any asset.

    The reason for this is that during the loading screen, various Components in the game trigger Addressables.InstantiateAsync / Addressables.LoadAssetAsync and I would like to keep the loading screen alive as long as any of these operations is still running.
     
    NuclearC00kie likes this.
  2. BelieveXiaoShuai

    BelieveXiaoShuai

    Joined:
    Nov 6, 2017
    Posts:
    16
    You may be able to encapsulate the api of Addressables by yourself
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,438
    I could do that, track all the async operations myself, but having an "isLoading"-like API seems so fundamental, that I would be surprised if it doesn't exist already.

    If it's not supported yet, what do the Addressables developers recommend to implement such functionality on the user side?