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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

The Netcode Documentation has errors

Discussion in 'NetCode for ECS' started by EnderManWiggins, Apr 7, 2020.

  1. EnderManWiggins

    EnderManWiggins

    Joined:
    May 22, 2019
    Posts:
    29
    So I was decided that I was going to try out Netcode, so I made a new project and started following the getting started documentation. And I was just copying and pasting the code. BUT the code has errors in it. Lots of things said that I was missing a library or that it could not access the variable because it was a protected variable.

    Please fix the doc or at least point me towards a tutorial.
    thanks
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,648
    Sure you were reading latest version?

    If so link to what's broken
     
  3. EnderManWiggins

    EnderManWiggins

    Joined:
    May 22, 2019
    Posts:
    29
    I don’t know if I am reading the latest version but that is what pulls up if I press the documentation for netcode inside the package Manager.

    It says that it can not access the DatastreamReader.Context becuase of its protection level. Any ideas of what I might have missed?
     
  4. EnderManWiggins

    EnderManWiggins

    Joined:
    May 22, 2019
    Posts:
    29
    This is what I was talking about. How do I fix it?
     

    Attached Files:

  5. EnderManWiggins

    EnderManWiggins

    Joined:
    May 22, 2019
    Posts:
    29
    By the way I only got to the third thing of code in the manual.
     
  6. EnderManWiggins

    EnderManWiggins

    Joined:
    May 22, 2019
    Posts:
    29
    The data stream reader is the only one I cannot get rid of.
     
  7. SebLazyWizard

    SebLazyWizard

    Joined:
    Jun 15, 2018
    Posts:
    221
  8. EnderManWiggins

    EnderManWiggins

    Joined:
    May 22, 2019
    Posts:
    29
    Thank you so much!