Resources.LoadAsync() bugged?

Resource.LoadAsync() doesn’t seem to work in Unity 5 but using the same files, Resources.Load() does.

    var request = Resources.LoadAsync("Audio/"+n);                   
   
    while (!request.isDone){
        Debug.Log("LOAD ASYNC: " + request.progress +"  Audio/"+n);
        yield;
    }
       
    var audioClipLoaded = request.asset as AudioClip;

audioClipLoaded is null when using LoadAsync but it’s ok when using Load().

Why?

I’d like to know what’s up there too, it seems to not load anything. There is not any form of error when LoadAsync fails either.

1 Like

Which Unity version are you on?

Same with me…

Unity Version: 5.3.4f1

Except it works now Bruster. You should check your code.