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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

LoadAssetAsync error

Discussion in 'Android' started by sirrus, May 7, 2015.

  1. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    I consistently receive this error when trying to load an assetbundle via the LoadAssetAsync method in an Android player:

    MissingMethodException: Method not found: 'UnityEngine.AssetBundle.LoadAssetAsync'.

    The same code works fine in the editor AND as a WebPlayer build.

    If I simple access the assetbundle's mainAsset property, the object loads fine (in Android).

    Has anyone else experienced this?


    Thanks.
     
  2. StaticNova

    StaticNova

    Joined:
    Feb 23, 2013
    Posts:
    60
    I was having the same problem using LoadAssetAsync<T>(), using LoadAssetAsync() instead and casting the object that is returned fixed the issue..
     
    sirrus likes this.
  3. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    Thanks StaticNova, I will give that a shot. I wonder if this is a known bug/issue for Android players...