#Correct way of playing layer animations

13 messages · Page 1 of 1 (latest)

pale umbra
#

Hey there! I'm trying to play animations in another layer but it isn't working for the client, only in the server.

I have attempted:
networkAnimator.Play(animState, animator.GetLayerIndex(UpperBodyLayerName));

And also:

animator.Play(animState, animator.GetLayerIndex(UpperBodyLayerName));

This is called in the server, the client sends a RPC.

#

UpperBody has a mask. Base Layer animations work fine.

pale umbra
#

Bump?

pale umbra
#

Hey there @steel dagger sorry to mention you, but this issue might be simple to fix and I haven't figured out a way to solve it yet.

take a look whenever you can.

steel dagger
#

@pale umbra hey sorry been sick past couple days, still am a little. If the animator is not changing by manually using play on it and RPCs. It's probably in the animator. This is assuming you are not using a network animator at all

pale umbra
# steel dagger <@266315832764792832> hey sorry been sick past couple days, still am a little. I...

no worries. Yeah I'm using a NetworkAnimator and the animation is playing in the server, the layer weight is being changed as well, but neither crossfade/play being called from networkAnimator the animator itself is doing anything in the client. Maybe I could just do a [ObserversRpc] and do it locally? I never had any issues playing animations in the server then having them sync via Networkanimator automatically

steel dagger
#

If it is a very short animation, there is a chance it could get missed using, play or crossfade through the network animator. The animation would have to be really short though, like the duration of the tick rate and even then it wouldn't necessarily be missed

#

What version are you on by the way?

pale umbra
#

I'm on 2.8.3

#

yeah it's not short

pale umbra
#

@steel dagger Hey there, I updated to 3.5.8 and this is still happening. Even worse, this is happening only with Crossfade animations. No matter if I use networkAnimator or animator, only the server can see the animations.

networkAnimator.CrossFade("AnimationName", 0.1f, 0);

steel dagger
pale umbra