Error in animation ...
 
Notifications
Clear all

Error in animation controller for spells/magic when doing photon networking  

kukulf
(@kukulf)
New Member

AnimationEvent 'OnAnimationEvent' on animation 'Standing 1H Magic Attack 01' has no receiver! Are you missing a component?

This is an exapmple of the error I get every time a remote player performs magic movements. It also leads to animation hickups on the receiving end.

We are using Photon PUN 2, and I have set the transfer of the animation parameters according to the synchronize parameters screenshot in your multiplayer explanation: https://ootii.com/knowledge-base/multiplayer-networking/

For the record, to make PUN 2 work, I had to do the same parameter tweaking as for Photon Bolt. Without this, animations (including jump, walk and run movement) would only play every once in a while:

motionController.AnimatorClearType = 1;
motionController.AnimatorClearDelay = 0.2f;

Quote
Topic starter Posted : 04/01/2021 5:31 am
Tim
 Tim
(@timtryz)
Member Admin
Posted by: @kukulf

AnimationEvent 'OnAnimationEvent' on animation 'Standing 1H Magic Attack 01' has no receiver! Are you missing a component?

Hey @kukulf ,

The Motion Controller itself is the component that would capture the event. It captures all animation events that I use in its OnAnimationEvent (line 2486).

Is it possible that your client character doesn't have the MC enabled? That's the only reason I can think of why Unity wouldn't find the event.

ReplyQuote
Posted : 09/01/2021 9:24 pm
Share: