Quantcast
Channel: Answers for "Play sound ONCE!"
Browsing index pages (4 articles)

Answer by superventure

Found a solution. I was close in my original attempt: if(animation["x"].enabled && animation["x"].time == 0) audio.clip = xsound; audio.Play(); When you think about it, all sound clips are...

View Article


Answer by efge

To play a sound once at the beginning you could play it in the function Start() or set your AudioSource in the inspector to PlayOnAwake true, Loop false. To play a sound once during Update() use a...

View Article


Answer by superventure

Found a solution. I was close in my original attempt: if(animation["x"].enabled && animation["x"].time == 0) audio.clip = xsound; audio.Play(); When you think about it, all sound clips are...

View Article

Answer by efge

To play a sound once at the beginning you could play it in the function Start() or set your AudioSource in the inspector to PlayOnAwake true, Loop false. To play a sound once during Update() use a...

View Article
Browsing index pages (4 articles)


Latest Images