Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unable to use Addressables.LoadAssetAsync<T>( address )

Discussion in 'Addressables' started by Raymond-Leung, Oct 25, 2019.

  1. Raymond-Leung

    Raymond-Leung

    Joined:
    Dec 12, 2016
    Posts:
    15
    Hi,

    Is it possible to use Addressables.LoadAssetAsync<T> to load TextAsset in Test Runner?
    I have tried to call the following, but the Completed event is never triggered.

    Code (CSharp):
    1. var asyncOperationHandle = Addressables.LoadAssetAsync<TextAsset>( address );
    2.        
    3. asyncOperationHandle.Completed += _ =>
    4. {
    5. };
    Remark, it works if I run the code in Unity Editor, iOS, android.
     
  2. Raymond-Leung

    Raymond-Leung

    Joined:
    Dec 12, 2016
    Posts:
    15
    Anyone tried to use Addressable in TestRunner (Edit Mode)?
     
  3. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464