• 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
1
Question by boxels · Dec 20, 2016 at 07:22 PM · networkingnetwork.destroydonotdestroy

DontDestroyOnLoad NetworkManager Bug 5.5.0f3

ERROR:

InvalidOperationException: The following game object is invoking the DontDestroyOnLoad method: NetworkManager. Notice that DontDestroyOnLoad can only be used in play mode and, as such, cannot be part of an editor script. UnityEngine.Networking.NetworkManager.InitializeSingleton () (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkManager.cs:196) UnityEngine.Networking.NetworkManager.UpdateScene () (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkManager.cs:729) UnityEngine.Networking.NetworkIdentity.UNetStaticUpdate () (at /Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkIdentity.cs:1074)

WARNING:

NetworkManager detected a script reload in the editor. This has caused the network to be shut down. UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()

Video of Error: (turn up quality so you can see details) https://youtu.be/TWTXFFTWDXU

Supposedly this was fixed a few versions ago: https://issuetracker.unity3d.com/issues/multiplayer-invalidoperationexception-when-select-neworkmanager-in-hierarchy-for-the-first-time

Unity Version: 5.5.0f3

We cannot get this same bug to occur in our developer's Windows Unity 5.4.1f, it only occurs in our new version 5.5.0f3.

We have also tested in 5.4.3f1 on a MAC and it does not occur. So it seems to be related to the latest build. 5.5.0f3 (mac).

alt text

screen-shot-2016-12-20-at-121951-pm.jpg (433.0 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by boxels · Dec 21, 2016 at 02:32 PM

Dear Unity user,

Thanks for reporting the issue.

We have fixed this bug in the latest version of Unity (5.6.0b3, which will soon be available). If you are still able to reproduce it on the latest version, please respond to this email.

We highly appreciate your contribution. If you have further questions, feel free to contact us.

Best regards, Denisas Kirilovas Unity QA Team

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 boxels · Dec 22, 2016 at 05:36 PM 0
Share

Come to find out, it had NOTHING to do with our version of Unity and everything it seems to do with starting the project in WINDOWS Unity and copying the project files to use with $$anonymous$$AC Unity.

We are now testing in Windows (the OS-Unity setup we originally built the game in)... and so far ZERO bugs, ZERO issues. So this suggests that you CANNOT copy a project from one OS to another and have it work seamlessly.

We are talking about many issues: networking not working graphics super laggy UNET problems strange errors that were fixed many patches ago...

avatar image
0

Answer by Snownebula · Apr 08, 2017 at 11:52 PM

Blockquote

boxels · Dec 22, 2016 at 05:36 PM 0 Share Come to find out, it had NOTHING to do with our version of Unity and everything it seems to do with starting the project in WINDOWS Unity and copying the project files to use with MAC Unity. We are now testing in Windows (the OS-Unity setup we originally built the game in)... and so far ZERO bugs, ZERO issues. So this suggests that you CANNOT copy a project from one OS to another and have it work seamlessly. We are talking about many issues: networking not working graphics super laggy UNET problems strange errors that were fixed many patches ago...

Blockquote

This problem has nothing to do with "MAC Unity" I am using Windows version and have the exact problem.

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 chadfranklin47 · Feb 24, 2018 at 04:42 AM 0
Share

Any solution as of yet?

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

109 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 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 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

how did I destory a gameobject with networktransform? 0 Answers

Multiple Network Managers detected in the scene + Destroying assets is not permitted to avoid data Loss. 0 Answers

Can one scene have two NetworkManagers? 1 Answer

Reference lost in NetworkEntity 0 Answers

Hashtable Deserialization & How to create a reference variable to a field obtained through reflection 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