- Home /
How To Sync Animation Over PhotonNetwork
hello guys, i had trouble with syc my animation with Pun 2 this is myy code for the method that every time i call it it take 2 parametr string and bool one for root motion and other for the name of the animation
public void playerTargetAnimationRPC(string targetAnim, bool isInteracting) {
anim.applyRootMotion = isInteracting; anim.SetBool("isInteracting", isInteracting); anim.CrossFade(targetAnim, 0.2f); }
i even tryed make it a PunRPC but nothing worked every time player trry use his animation only him can see it and other play see him moving a litle bit because of the root motion I heard that photon only sync paramter like bool and float but in my case i am not using any one of them i trryed change all my animation with bool but i didn't like the result Animator start looking like spagite Enyway I hope some one can help me to solve that problem Iwanna complete my mobile game as soon as i can and thanks