NetworkMecanimAnimator Synchronization

Options

In a team project, we tried to synchronize animation using NetworkMecanimAnimator's SetTrigger function. At this time, when SetTrigger is executed in the Client criteria, there is a symptom that animation is not executed on the own screen and animation is executed only on other client screens.

Is this the intended action? Or is it a bug?

Answers

  • emotitron
    Options

    Hi Yoon.

    Currently NMA (NetworkMecanimAnimator) is only a StateAuthortity -> Proxy sync only, and anything on the input authority should be done directly to the Animator.

    There was some complexities with trying to make this pass through play nice with all use cases with client prediction.

    So you will want an if (Object.HasInputAuthority) check here, and apply animator.SetTrigger() directly.

    Hope this is helpful,

    Davin