Wow. I ain't going back to any other sound playing methods. Nesting audio in animations, with precise frame timing and allow for multiple clips. That's a God-tier add-on. Thank you so much!
Unity - Animator with Audio
A downloadable tool
Add audio to your animation without having to write any script
- Add the PlayAudioClip behaviour to your desired state
- Choose what condition at which point you want it to play: OnEnter, OnUpdate, OnExit state
- Configure how of often on the OnUpdate you want it to happen
- Add more than one AudioClip in order to iterate through it (eg. footsteps)
Log in with itch.io to leave a comment.
Thank you so much this is exactly what I needed!
Thanks for this, it helped me a lot with a problem with the game I am making. Can I use it for commercial usage?
This is so helpful. I was trying to add Animation-Events audio, but it always lagged or had weird latency... I installed this script, and now sounds are perfectly timed to my animations, thank you! The only thing is, for some reason when I drag a soundclip to play into the appropriate editor-field, it works for the session, but resets to 'none' every time I quit unity :/ Anyway, thanks for getting me started.