Search Unity

Audio AudioClip not playing even though AudioDataLoadState is Loaded

Discussion in 'Audio & Video' started by dbarrett, Nov 21, 2017.

  1. dbarrett

    dbarrett

    Joined:
    Sep 6, 2017
    Posts:
    32
    So I am loading an audio clip via www.GetAudioClip because I am creating AudioClips at runtime and then referencing their file path in order to load them onto a game object with an audio source attached. The problem isn't in the creation of the AudioClips as I can see the AudioClips in my assets folder and even when I look at the gameobject I placed my newly created AudioClip on at runtime I can play the audioclip in the inspector and hear it playing.

    However, for some reason even though it says AudioDataLoadState is Loaded the AudioClip fails to Play.

    Is there a reason for this?