Hi.
I'm using Mechanim animations. I have tried to use animation API like this:
apPortrait p = GetComponent<apPotrtait>();
p.PauseLayer(1); // try to stop the animation in layer 1
but the animation in layer still runs.
Looks like the AnyPortrait animation API does not work when I use Mechanin. Am I right?
Hi!
AnyPortrait's animation functions only work when Mecanim is not used.
That's because it was implemented based on Unity's Legacy Animation system.
If you use Mecanim to control animations, you should call script functions of the "Animator" component, not apPortrait.
Please refer to the script manual for Unity's Animator to control animation.
If the problem is not resolved, please leave a comment again!
Thanks.