Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Netcode 1.1.0-pre.3 unable to turn on Network Emulation in PlayMode Tools

Discussion in 'NetCode for ECS' started by desertGhost_, Nov 10, 2023.

  1. desertGhost_

    desertGhost_

    Joined:
    Apr 12, 2018
    Posts:
    259
    Hi,

    After updating to Netcode 1.1.0-pre.3, I am no longer able to turn on Network Emulation in the PlayMode Tools (it was off at time of upgrade from 1.1 exp packages). The toggle does not respond when clicked.

    Thanks.
     
    Opeth001 likes this.
  2. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,112
    Same here
     
  3. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    873
    This is odd. Has been fixed already but it is going to be available in another release. For the moment, as workaround you can remove the following lines from MultplayePlayModePreferences.cs

    Line 65:
    Code (csharp):
    1.  
    2. #pragma warning disable CS0618
    3.                 if (value == SimulatorView.Disabled)
    4. #pragma warning restore CS0618
    5.                 {
    6.                     Debug.Log("Disabling simulator");
    7.                     SimulatorEnabled = false;
    8.                     return;
    9.                 }
    10.  
    11.  
     
  4. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    285
    Another workaround is to clear the EditorPref via Registry Editor (regedit) (or Mac equivalent). For Windows machines:
    1. Close Unity Editor.
    2. Via regedit.exe, set
      HKCU\SOFTWARE\Unity Technologies\Unity Editor 5.x\MultiplayerPlayMode_[projectNameHere]_SimulatorView_[h#########]
      to
      2 (Decimal)
      , and save.
    3. Re-open Unity. It's now toggleable, although the Ping vs Per-Packet view dropdown does not work.
    Apologies for the disruption. Fixes are needed for 1.1 and 1.2, which I'll do now.
     
    Last edited: Nov 16, 2023
    Kmsxkuse likes this.
  5. Shinyclef

    Shinyclef

    Joined:
    Nov 20, 2013
    Posts:
    497
    Just FYI, got this in 1.2, but this workaround fixed it. Thanks.
     
    NikiWalker likes this.