Search Unity

DOTS + Netcode + Unity2021.2

Discussion in 'NetCode for ECS' started by bb8_1, Oct 22, 2021.

  1. bb8_1

    bb8_1

    Joined:
    Jan 20, 2019
    Posts:
    100
    Anyone tried DOTS Netcode on Unity 2021.2.0b16 or above and does it work are there problems etc?
     
  2. bb8_1

    bb8_1

    Joined:
    Jan 20, 2019
    Posts:
    100
    I tried simple NetCube sample(I didnt download the project but I created similar with similar code on my own) using Unity 2021.2.4f1(and the latest entities(0.17) and netcode(0.6) versions packages) and the result is:

    1. If i used subscene for conversion it did not work : error was : InvalidOperation Exception : Cannot convert a owner predicted ghost jsa as a scene instance

    2. However if i used good old :) ConvertToClientServerEntity component everything worked like a charm

    3. Build also worked after 2.

    Also i noticed that each time i exit Unity Editor it crashes - but when i built the game there was no crash (when i later exited Unity Editor) and the process of build was fine without problems though it took some time
     
    Last edited: Nov 27, 2021
  3. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    894
    NetCode 0.6 is not fully compatible with Unity 2021.x, only with Unity 2019 and 2020. Same apply to Entities package.
    That does not means with some custom fixes you could not make it work, but for sure not out of the box.
     
    bb8_1 likes this.