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 Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Network Config Mismatch error (while config is the same)

Discussion in 'Netcode for GameObjects' started by Altalus06, Jun 4, 2021.

  1. Altalus06

    Altalus06

    Joined:
    Sep 3, 2017
    Posts:
    12
    Hello,

    For those of you who are experiencing the "Network Config Mismatch" problem when the config seems to be identical on the client and server, I found a small bug in the NetworkManager inspector that causes this.

    Disabling the "Enable Scene Management" checkbox also disables "Use Prefab Sync", and automatically checks that box.

    When debugging the source code to see where the mismatch problem was coming from , I discovered that the network config is not updated accordingly.

    If the box was unchecked before disabling scene management, the parameter will remain "False" in the network config, thus leading to a potential Mismatch if the box is checked on the server.

    You should therefore remember to always check this box before disabling scene management.

    Hope it helps
    Cheers
     
    Deleted User and luke-unity like this.
  2. M1ngXU

    M1ngXU

    Joined:
    Jun 14, 2019
    Posts:
    2
    Ok, thanks
     
  3. Deleted User

    Deleted User

    Guest

    Thank you, fixed my issue as well.