The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

player animation states not syncing over the network on joining the room

tsr1010
2022-09-19 17:08:56

Hello, I have been having issues with player animation states syncing over the network in our game. So, the idea is to make the player sit on entering a room(player animates from stand to sit), the issue here is late joiners see the earlier players standing and players who join afterwards sitting. I have the photonanimatorview and photontransformview attached to the player prefab. photonanimatorview also looks over the enum animation states. The interesting thing here is when I look locally from a late joiner's instance, the eariler player's photonanimatorview shows the enum state as sitting but they still are standing. So, I am currently blocked at this issue and would appreciate some guidance.

Comments

Tobias
2022-09-21 08:55:48

Apparently, this somehow did not trigger the correct animation (even though the state updated correctly). This is odd indeed. Is there a way you could apply the state to the animation once more?

I would not sync this as part of the animation state. Instead, you could send this sort of state in an "observable" script via OnPhotonSerializeView. Then, trigger the animation.

PUN is rather old and put into "legacy mode". We won't be able to fix all problems with it. It should be "open enough" to replace the AnimatorView with something that applies the state.

Back to top