Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Animation Rigging over the network

Discussion in 'Netcode for GameObjects' started by XeLLLeR, Jun 13, 2022.

  1. XeLLLeR

    XeLLLeR

    Joined:
    Dec 5, 2020
    Posts:
    30
    So question is very simple, how to sync animation rigging over the network? I know that I must set animator triggers with rpc calls, but I can't handle animation rigging that way or I don't know something. Any suggestions?
     
  2. kiranmaya

    kiranmaya

    Joined:
    May 27, 2010
    Posts:
    218
    hi, did you find any solution?
     
  3. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    228
    Hi @XeLLLeR , what do you mean by sync animation rigging ? Are you already using the ClientNetworkAnimator script?

    Code (CSharp):
    1. using Unity.Netcode.Components;
    2. public class ClientNetworkAnimator : NetworkAnimator
    3. {    
    4.      protected override bool OnIsServerAuthoritative()    
    5.      {        
    6.            return false; //allows the client to send animations data over the network    
    7.      }
    8. }
     
  4. nullmoongames

    nullmoongames

    Joined:
    Dec 23, 2019
    Posts:
    9
    You probably need to rebuild the Rig for all clients. I will try this solution and post the result here