Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Error when installing Multiplayer Samples Utilities package

Discussion in 'Netcode for GameObjects' started by DreamCraftRevivify, Jun 3, 2023.

  1. DreamCraftRevivify

    DreamCraftRevivify

    Joined:
    Jan 4, 2023
    Posts:
    2
    When I follow the instructions in the docs for installing the Multiplayer Samples Utilities package I get 6 errors like this one:

    Library\PackageCache\com.unity.multiplayer.samples.coop@a4cafe2062\Utilities\SceneManagement\SceneLoaderWrapper.cs(45,28): error CS1061: 'NetworkManager' does not contain a definition for 'OnClientStarted' and no accessible extension method 'OnClientStarted' accepting a first argument of type 'NetworkManager' could be found (are you missing a using directive or an assembly reference?)

    Both Net Code for GameObjects and Multiplayer Tools appear to be installed correctly. What could I do to resolve this.
     
  2. cerestorm

    cerestorm

    Joined:
    Apr 16, 2020
    Posts:
    674
    Updating to Netcode version 1.4.0 should fix those errors.
     
  3. unity_799E5AB072410926528D

    unity_799E5AB072410926528D

    Joined:
    Feb 17, 2022
    Posts:
    1
    It has worked for me, I had the same problem and update to 1.4 and were resolved. If you cant install it because unity says that is the most update, just click in add by name and put: "com.unity.netcode.gameobjects" and iut will automatically install thge latest version
     
  4. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    440
    Thanks for raising this!
    I flagged this internally, I hope the dependency mistake will be fixed soon!