Quiz 6 - Shouldn't it be AudioSource and not AudioClip

The first question of quiz 6 asks which statement would play the audio clip called “specialSound”. The correct function is PlayOneShot but that is a member of AudioSource and not AudioClip (we’re specifying the clip as the parameter), correct?

The quiz question currently looks correct, as does the correct answer. Impossible to tell whether there was a mistake in the quiz at the time this question was raised.

To confirm though, the correct answer is audioSource.PlayOneShot(specialSound);


See also;

Privacy & Terms