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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Unity Multiplayer Can't seem to get NetworkAnimator running since 5.2 upgrade

Discussion in '5.2 Beta' started by darthbator, Sep 7, 2015.

  1. darthbator


    Jan 21, 2012
    Ok i think unlike the last thread I made this isn't just a personal oversight. Since updating to 5.2 network animators not longer appear to work and just generate the following NRE over and over.

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEngine.Networking.NetworkSystem.AnimationParametersMessage.Serialize (UnityEngine.Networking.NetworkWriter writer) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/Messages.cs:413)
    3. UnityEngine.Networking.LocalClient.InvokeHandlerOnClient (Int16 msgType, UnityEngine.Networking.MessageBase msg, Int32 channelId) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/LocalClient.cs:160)
    4. UnityEngine.Networking.ULocalConnectionToClient.Send (Int16 msgType, UnityEngine.Networking.MessageBase msg) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/LocalConnections.cs:24)
    5. UnityEngine.Networking.NetworkServer.SendToReady (UnityEngine.GameObject contextObj, Int16 msgType, UnityEngine.Networking.MessageBase msg) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkServer.cs:356)
    6. UnityEngine.Networking.NetworkAnimator.OnAnimationParametersServerMessage (UnityEngine.Networking.NetworkMessage netMsg) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkAnimator.cs:400)
    7. UnityEngine.Networking.NetworkConnection.InvokeHandler (Int16 msgType, UnityEngine.Networking.NetworkReader reader, Int32 channelId) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkConnection.cs:183)
    8. UnityEngine.Networking.NetworkServer.InvokeHandlerOnServer (UnityEngine.Networking.ULocalConnectionToServer conn, Int16 msgType, UnityEngine.Networking.MessageBase msg, Int32 channelId) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkServer.cs:1643)
    9. UnityEngine.Networking.ULocalConnectionToServer.Send (Int16 msgType, UnityEngine.Networking.MessageBase msg) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/LocalConnections.cs:83)
    10. UnityEngine.Networking.NetworkAnimator.CheckSendRate () (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkAnimator.cs:177)
    11. UnityEngine.Networking.NetworkAnimator.FixedUpdate () (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkAnimator.cs:96)
    The animations play as expected on the local machine, they just don't appear to pass over the network. Oddly even placing a NetworkAnimator on an object and scrolling the inspector will cause the console to explode with the following warning

    Animator does not have an AnimatorController

    Removing the network animator appears to cause that error to go away. I did manually drag the objects local animator component into the NetworkAnimator field so I would figure that it should have the reference that it's seeking. Thanks so much for any help!

    Checked back in 5.1.1 and everything still seems to work as expected.
    Last edited: Sep 7, 2015
  2. feint


    Jan 6, 2013
    yeah, getting this too!