One of the touted benefits of the StateMachineBehaviours is adding a sound hook to an animation state. That sounds great! Unfortunately, I'm not sure how I could do this when a blend tree is involved. I can put a script at the top level of the state containing the blend tree, but how would I go about getting more information so I can figure out what sound to play? Does it even make sense here?

Basically I have a blend between an idle animation and a walk. I'd like to start playing an idle sound when the idle animation starts playing and then crossfade the sound over to a walk as the animation blends over to walk.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.