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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Discussion A TIP in the documentation is not possible to implement as-is

Discussion in 'Netcode for GameObjects' started by neviovalsa, Jun 7, 2023.

  1. neviovalsa


    Jun 24, 2019
    this is very small issue but I thought maybe a quick fix to the docs could avoid some confusion

    I was reading the following section on Scene Events: .

    The tip just below the code snippet says:

    This code can be applied to a component on your GameObject that has a NetworkManager component attached to it. Since the GameObject, with the NetworkManager component attached to it, is migrated into the DDOL (Dont Destroy on Load) scene, it will remain active for the duration of the network game session...

    Since the code snippet contains checks such as
    Code (CSharp):
    1. if (IsServer){
    2. ...
    3. }
    this snippet should be a NetworkBehaviour, which can't be attached to a NetworkManager.
  2. RikuTheFuffs-U


    Unity Technologies

    Feb 20, 2020
    Hi @neviovalsa , thanks for flagging. Do you know that you can make the change yourself with the "Edit this page" link at the bottom of the documentation's page?