Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
4
Question by darthbator · Sep 12, 2015 at 04:23 AM · animationnetworkinganimator controller

NetworkAnimator component not functioning since 5.2 upgrade!

Hey everyone. So since I upgraded from 5.1.1 to 5.2.0 I All my network animator components appear to have stopped working!

Here's a forums post I made right before 5.2 exited beta (http://forum.unity3d.com/threads/cant-seem-to-get-networkanimator-running-since-5-2-upgrade.353250/#post-2289118). Has anyone else run into this issue? Below is the output that I get from the client when I have a network animator attached to a gameobject.

 NullReferenceException: Object reference not set to an instance of an object
 UnityEngine.Networking.NetworkSystem.AnimationParametersMessage.Serialize (UnityEngine.Networking.NetworkWriter writer) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/Messages.cs:413)
 UnityEngine.Networking.LocalClient.InvokeHandlerOnClient (Int16 msgType, UnityEngine.Networking.MessageBase msg, Int32 channelId) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/LocalClient.cs:160)
 UnityEngine.Networking.ULocalConnectionToClient.Send (Int16 msgType, UnityEngine.Networking.MessageBase msg) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/LocalConnections.cs:24)
 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)
 UnityEngine.Networking.NetworkAnimator.OnAnimationParametersServerMessage (UnityEngine.Networking.NetworkMessage netMsg) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkAnimator.cs:400)
 UnityEngine.Networking.NetworkConnection.InvokeHandler (Int16 msgType, UnityEngine.Networking.NetworkReader reader, Int32 channelId) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkConnection.cs:183)
 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)
 UnityEngine.Networking.ULocalConnectionToServer.Send (Int16 msgType, UnityEngine.Networking.MessageBase msg) (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/LocalConnections.cs:83)
 UnityEngine.Networking.NetworkAnimator.CheckSendRate () (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkAnimator.cs:177)
 UnityEngine.Networking.NetworkAnimator.FixedUpdate () (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkAnimator.cs:96)

I had this working fine in 5.2 do I now need to init this component in some way? All animations play locally without any issues. Any help is most appreciated.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LGolivia · Sep 13, 2015 at 02:54 PM 0
Share

I am also getting this exact error, and I don't know how to solve it.

In 5.1 it was fine.

In 5.2 is when the error messages started. I have no other error messages besides this.

Everything looks fine in the inspector, and animations work over the network just fine.

If I uncheck the Network Animator component, the errors stop -- but that isn't a proper solution.

avatar image Anton1274 · Sep 15, 2015 at 11:29 AM 0
Share

Same issue seem tha Unity adjusts on thing and apart another......

avatar image B2F · Oct 07, 2015 at 05:25 PM 0
Share

No fixes on this yet? This seems like a pretty big issue.

avatar image Aulwynd · Oct 16, 2015 at 04:43 PM 0
Share

Same issue here. Worked fine on 5.1 and this error showed up on 5.2, and even tough its keep throwing errors non-stop the animation works fine on the network.

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Vasenkov · Oct 12, 2015 at 07:43 AM

In Play mode try to look at Network Animator component. There are should be checkboxes for parameters. If none of them are checked, there is that error. You can try to check 'em during Play Mode to test it. If there is no way to initialize Animator before playing (means, using a prefab) probably you should try to check all of the params with script. Check NetworkAnimator on Scripting Reference for more details.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Vasenkov · Oct 12, 2015 at 07:54 AM 1
Share

For example, you can add this in your Start function in script on object with NetworkAnimator

 for (int i = 0; i < GetComponent<Animator> ().parameterCount; i++)
                 GetComponent<NetworkAnimator> ().SetParameterAutoSend (i, true);




avatar image EvilSushi Vasenkov · Nov 09, 2015 at 02:29 PM 0
Share

This fixed my problem, thank you for this!

avatar image darthbator · Oct 13, 2015 at 04:22 AM 0
Share

That still doesn't seem to solve my issue. I don't see a parameter list in the network animator and then programmatically enabling that parameter does nothing.

avatar image PhilippLe · Oct 13, 2015 at 11:11 AM 0
Share

This works for me. Thank you!

avatar image
0

Answer by bknetwork · Dec 11, 2015 at 09:15 AM

@darthbator

I'm getting this issue too! Is there a bug fix in Unity 5.3 now?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image darthbator · Jan 02, 2016 at 11:59 AM 0
Share

This component magically started working for me again sometime in the 5.2.x releases. I have no idea why it wasn't working before that.

avatar image
0

Answer by DiscoFever · Jul 31, 2016 at 02:31 PM

Still not in 5.4 :(

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

44 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Network Animator on child gameobjects 1 Answer

Placing my own animation idle&move to player 0 Answers

Animator Override controller SubstateMachine issue 0 Answers

Attach gun to two hands 0 Answers

How to animate multiple objects in sequence? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges