Search Unity

Resolved Animation Rigging Synchronization

Discussion in 'Netcode for GameObjects' started by codeBatt, Apr 4, 2023.

  1. codeBatt

    codeBatt

    Joined:
    Feb 12, 2020
    Posts:
    40
    Hello,

    In my game, players use animation rigging for aiming & looking at objects. However, players can not see each other in the right pose, just odd shapes. What could be the reason?

     
  2. Gleeno

    Gleeno

    Joined:
    Nov 3, 2020
    Posts:
    1
    Same problem...
     
  3. codeBatt

    codeBatt

    Joined:
    Feb 12, 2020
    Posts:
    40
    codeMonkey replied me @Gleeno we should also synchronize the weight values accross the network. I will share a script that does this, as soon as I figured it out.
    Also may I ask you what kind of game are you developing can you share? You can dm me from there or on discord.
     
  4. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    440
    @Gleeno @batuhoody_unity

    1. What NGO version are you using?
    2. Are you using Triggers in your animator? Because they don't get synchronized automatically over the network, you have to manually sync them with RPCs
     
  5. codeBatt

    codeBatt

    Joined:
    Feb 12, 2020
    Posts:
    40
    Hello,
    Its done with using a delegate that sets these weights in an awake method subsrcibing to a network variable's onValueChanged event. Its perfectly fine rn.