Hey everyone,
I was trying to play a sound effect over an entire animation but I wasn’t sure how to do it. For short sound effects, I usually use events in the animation window to call a function like this.
void FootSteps()
{
GetComponent().PlayOneShot(footSound);
}
This works perfectly for something like footsteps, but how can I play a sound effect for something like a rocket launch animation or flying plane. (The Sound effect would play from the start to end of the animation clip).
Thanks