Hi,
I have a animation and it needs to be flipped according the environment.
But I find the flip action will delay, the first frame of the animation is not flipped and the next will do.
Dose anyone know how to fix it?
additional pseudo-code:
GameObject A;
SkeletonAnimation sa = A.Getcomponent<SkeletionAnimation>;
A.setActive(true);
sa.skeleton.initflipx = true;
sa.state.setAnimation(0, "xxx", true);
GameObject B;
SkeletonAnimation sb = B.Getcomponent<SkeletionAnimation>;
B.setAcive(false);
sb.skeleton.initflipx=false;
// after game running for a while and trigger a collision
B.setActive(true);
sb.skeleton.flipx = sa.skeletion.flipx;
sb.state.setAnimation(0, "yyy", true);
B.transform.position = A.transform.position.
A.setActive(false);
I find the first frame of GameObject B is not flipped.