Search Unity

Question Audiosource.play - value cannot be null error, even tho sound does play.

Discussion in 'Audio & Video' started by andrescuevas, Mar 11, 2021.

  1. andrescuevas

    andrescuevas

    Joined:
    Apr 23, 2019
    Posts:
    24
    I want to play the default sound loaded into an audiosource from script using audiosource.play(); It does play, but I also get an error: value cannot be null. It doesnt make sense to me. What can I do?