I’m trying to sync up a sound to an animation, and so want to play one instance of the sound as the animation loops. It’s an alarm clock. So I have playOnAwake enabled, and I keep enabling and disabling the component using the AudioSource animation triggers. It plays the sound like I would like, so it works perfectly.
I’m really just trying to understand if this is the intended functionality of playOnAwake. Is this “awake” when the component is awoken in this case?
I was under the impression it was when the game object itself was woken up.
Does this extend to scripts? If a script is enabled and disabled, is Awake ran once again?