- Home /
BCE0018 Error Audio Clip Does not denote a valid Type ?
var myClip : AudioClip;
function Start () {
Audio.PlayOneShot(myClip);
}
im not sure exactly whats wrong and ive been trying to figure it out for a while
Comment
It compiles fine for me (though 'Audio' should be 'audio').
You have the audio file assigned in the inspector? If so, try Audio.PlayClipAtPoint(). I've run into random issues with Audio.PlayOneShot() just not firing for whatever reason, and the alternative always seems to work for me.
Your answer
![](https://koobas.hobune.stream/wayback/20220613144109im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Audio won't play sound 2 Answers
Triggering multiple audio clips to play in sequence 1 Answer
Music is not playing after build to APK 2 Answers
Unspecified Error during Audio Import 0 Answers
UnityWebRequestMultimedia to get AudioClip from API 2 Answers