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.
  2. Dismiss Notice

Networkanimator doesn't synchronize parameters

Discussion in 'Netcode for GameObjects' started by ErezShahaf, May 24, 2022.

  1. ErezShahaf

    ErezShahaf

    Joined:
    Feb 3, 2022
    Posts:
    70
    Unity 2021.2.10f
    I added the network animator and dragged in my animator
    upload_2022-5-24_14-35-8.png
    I don't get all the public variables from this script which are supposed to allow me to allow authorize client updates and specific animations (at least that's what it looks like on youtube videos).
    Inside the game the client can only see it's own animations which indicate that the networkAnimator doesn't synchronize the parameters.
     

    Attached Files:

    Last edited: May 24, 2022
  2. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    306
    The NetworkAnimator only synchronizes animation parameters from the server to the clients. Are you changing the parameters on the server?
     
  3. ErezShahaf

    ErezShahaf

    Joined:
    Feb 3, 2022
    Posts:
    70
    No, I am trying to change it directly from the client - as I understand in the past it was possible to mark "client authorization" but seems like it it is deprecated. I will change it to the server, thanks.