Unwanted looping facial animation in Unity

Hi, support team.

I used FaceFX to generate animation XML using the Export Collapsed XML Actor, then put the XML into Unity.

There is an issue I'd like to ask you about. I have an unwanted facial animation looping in my Unity scene. So the character's face kept moving after he finishes his speech. How do I stop the animation from looping?

Previously it can be removed by removing extra frames at the end of the FaceFX animation. But I found one that can't be solved using the same solution. So I'm hoping you could provide me some hints on what to do next.

Thanks a lot!

Are you reproducing this in the editor, or in a build? What Unity version/ platform/build type, etc. are you using?

What I think is going on is that some platforms will automatically "reset" the audio to time=0 when the audio finishes. On line 377 of FaceFXControllerScript_Base.cs (from the latest version on the unity forums), is where the animation time is set by the audio time. If this is what is going on, I would add an additional check that the audio time is always increasing (by caching the last frames audio time, and clearing the cache in PlayAudioFunction)

Another possibility is that there is an issue with compressed audio timing on the platform. So it might be worthwhile trying to use uncompressed audio to see if it fixes the problem. See here:
http://docs.unity3d.com/ScriptReference/AudioSource-time.html

Send us an email to support (at) oc3ent (dot) com if you need some more help.