Hey,
So we have several scenes where an animation begins when tracking begins. In other words, we have an imported .ma file and an AudioClip that both get started simultaneously when tracking begins, kind of like:
TrackingStart() {
transform.animation.Play("animation_name");
audioSource.Play("clip_name");
}
We notice that the animation an audio are often not in sync. However, once the animation is loaded, if we press a Restart button that essentially calls the same function, then the animation and audio are in sync. For instance:
RestartButtonPressed() {
TrackingStart();
}
Any thoughts as to why this may be?
It sounds like contention between the initial animation and audio buffering. Have you profiled the app, or simply checked the FPS count during this process?
Also when you've tested Restart, has the parent object already been enabled by OnTrackingFound? - wondering whether the Renderer activation is initiating at the same time as the audio and animation.
This may be a good question for the Unity forum or answers.unity3d as well. There's nothing happening under the hood w/ Vuforia that would offset the audio play.