PhotonAnimatorView doesn't synchronize

Options
Hi!

We are developing a 2D Top-Down game. Our character is built with a rigidbody2D and is moved with root motion (for animations we are using Spine).

We are using Mecanim with empty clips that have the same durations of our animations. To synchronize Mecanim we're using PhotonAnimatorView.

Only the photonView' s owner set parameters on animator.

We have a problem with bool that change in two sequential frames (all parameters are synchronize in "Continuos" manner).

Example: In our game you can charge ranged attack and we have two different animations for charge and shoot. So when player click right mouse button it starts to charge (a bool is settedl) and when player release right mouse button it shoots (setting another bool).
The problem is that on all client we lose the second bool, so all client remain in charging state.

Maybe the problem is that our bool remains true only for one frame. But my question is: OnPhotonSerializeView() isn't called every frame? How can it lose boolean values? (We have sendRate and sendRateOnSerialize values equal to 60).

Thanks for help,
Bye.
Andrea.

Comments

  • Tobias
    Options
    OnPhotonSerializeView is not called every frame. Usually, PUN calls it only every 100ms.
    The PhotonAnumatorView is also not run every frame, so it is likely to miss something.
    The problem is that it does not delta-compress updates, so having updates for every single frame, this would be too much quickly.

    Is the problem still unsolved? Sorry for missing this.