How to reproduce:
- Open the attached “IN-151938” project
- Open the “SampleScene” scene
- In the top bar of the Unity editor, select “Window” > “Multiplayer” > “Multiplayer Play Mode”
- In the opened “Multiplayer Play Mode” window under “Virtual Players”, enable “Player 2”
- In the Unity editor, enter Play mode
- Exit Play mode
- In the Hierarchy tab, select “Main” GameObject
- In the Inspector tab, right-click “Bug Test (Script)” > click “Edit Script” and open in code editor
- In the opened code editor, change “print(“Hello World!”)” to “print(“Test”)” and save the changes (Ctrl + S)
- In the Unity Editor, enter Play mode
- Observe the results in the Consoles of Main editor and “Player 2”
Actual result: The Main Editor prints "Test" and "Player 2" still prints "Hello World!"
Expected result: Both the Main Editor and "Player 2" print "Test"
Reproducible with: 6000.7.0a5, 6000.7.0a6
Not reproducible with: 6000.3.23f1, 6000.6.1f1, 6000.7.0a4
Could not test with: 6000.0.83f1 (CurrentPlayer.IsMainEditor is not available - MPPM 1.x exposes CurrentPlayer under the Unity.Multiplayer.Playmode namespace)
Reproducible on: Windows 11 Enterprise (25H2)
Not reproducible on: No other environments tested
Workaround: In the top bar of the Unity editor, select “Edit” > “Project Settings” > select “Editor” and under “Enter Play Mode Settings”, change “When Entering Play Mode” value to “Reload Domain only” or “Reload Domain and Scene”