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
  3. Dismiss Notice

Bug 2.0.0-exp.2 - Is it possible to install?

Discussion in 'Netcode for GameObjects' started by mo1ok, May 10, 2024.

  1. mo1ok

    mo1ok

    Joined:
    Mar 26, 2016
    Posts:
    7
    Hey all,

    I was wondering - is it possible to install NGO 2.0.0-exp.2 in Unity at this time? I understand it's experimental and prone to issues, but am wondering if anyone else has managed to install it at all.

    When installing on a fresh project with Unity 2023.1.20f1, I get an issue with the manifest upon install:

    Code (CSharp):
    1. Unable to add package [com.unity.netcode.gameobjects@2.0.0-exp.2]:
    2.   Manifest [com.unity.netcode.gameobjects@2.0.0-exp.2\package.json] is invalid:
    3.     '6000.0' is not a valid `unity` property value. Expected '<year>.<version>'.

    When installing on a 100% fresh project with any version before 2023.1.20f1, I get a compile failure due to a type mismatch with `ContactPairPoint` (this one seems strange me, since `ContactPairPoint` does, in fact have these definitions on it).

    Code (CSharp):
    1. Unable to add package [com.unity.netcode.gameobjects@2.0.0-exp.2]:
    2. error CS1061: 'ContactPair' does not contain a definition for 'contactCount' and no accessible extension method 'contactCount' accepting a first argument of type 'ContactPair' could be found (are you missing a using directive or an assembly reference?)
    Would love to use some of the new features, but wondering if anyone else has actually managed to get 2.0.0-exp.2 working! Or if I'm doing something wrong! These issues both appear with completely vanilla projects created from Unity editor.
     
  2. NoelStephens_Unity

    NoelStephens_Unity

    Unity Technologies

    Joined:
    Feb 12, 2022
    Posts:
    278
    @mo1ok

    It requires Unity 6. You should be able to install that via Unity Hub:
    upload_2024-5-10_14-18-51.png

    Once installed, open the package manager and add the package by name and version:
    upload_2024-5-10_14-42-57.png
     
  3. mo1ok

    mo1ok

    Joined:
    Mar 26, 2016
    Posts:
    7
    Ah, got it, thank you!
     
    NoelStephens_Unity likes this.