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

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,777
    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:
    234
  8. EnderManWiggins

    EnderManWiggins

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