Search Issue Tracker
Fixed in 2017.1.X
Votes
3
Found in
5.5.1p2
Issue ID
881743
Regression
Yes
[UNET] OnStartServer() and OnStartClient() are not called (as host) if they were used in a previous session as client
To reproduce:
1. Open project
2. Build and run 'offline' scene
3. When built scene is running, play scene in editor
4. In built scene click 'LAN Host'
5. In editor scene click 'LAN Client'
6. Press space in built scene (small sphere will appear)
7. Press 'Stop' in both scenes
8. In editor scene click 'LAN Host'
9. In built scene click 'LAN Client'
10. Press space in editor scene (small sphere will appear)
Expected: messages after 6th and 10th steps should be similar
Actual: after 10th step error appears 'Object has non-zero netId 4 for Sphere (UnityEngine.GameObject)
UnityEngine.Networking.NetworkServer:Spawn(GameObject, NetworkHash128)'
NOTE: if space button will be pressed more than once in 10th step, after a few clicks you will see messages, that are as expected result
Reproduced on: 5.5.1p1, p3, 5.6.0b5, b9
Not reproducible: 5.4.4p1 5.5.0a6, f2, 5.5.1f1 5.6.0b3, b4
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Console window loses focus of the last message when a lot of messages are shown in a row
- Shadow artifacts appear when using a merged mesh with a specific Near Plane value in the Play Mode in URP
- "TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR" error when a lot of web requests are sent within a few minutes
- “ArgumentOutOfRangeException“ error when selecting 'TMP_InputField' content using keyboard in WebGL build
- Spot Light with 'Box' Shape stops working when it collides with Mesh
Add comment