- Home /
Audio Source Pitch effect Legacy Animation
I am really pulling my hair out, how is this even happening? This can't possible be desired behavior for unity. But I play an animation with the legacy animation system ( I have to use this). I have an audio source on a separate game object. I change the speed of the animation clip in code but it still plays at 1 since the pitch of the audio source is 1. I change the pitch in the editor while its playing and the animation speed is synced to that variable. I am really at a loss here.
Answer by SniperEvan · Oct 24, 2015 at 06:00 AM
I'm having a little bit of trouble understanding your question (no offense). The audio pitch value is altering the animation speed?
Yes if I change the pitch param on the audio source it changes the speed of the animation. Even if I use the Audio $$anonymous$$astering Window the pitch param still affects it. If I put a debug log of the animation speed, it spits out the correct float even though in game the speed is different.