Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.2.0b10
Issue ID
947322
Regression
No
[Multiplayer] connectionToClient variable is not set on Spawned objects
connectionToClient variable is set only on Player object. So when you try to use this variable (for example for SpawnWithClientAuthority() or RemoveClientAuthority()) then you get NullRefException
How we can reproduce it using the example you attached
1 Open attached project
2 Open scene "Scene1"
3 Press Play in Editor
4 Press "Lan Host" in Game view
5 Press key "s" on the keyboard and then key "e"
Actual results: NullReferenceException appears -
"NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Networking.NetworkServer.SpawnWithClientAuthority"
it happens because the connectionToClient variable is not set
Expected results: connectionToClient variable should be set for Spawned objects
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Resolution Note:
Mass closure of UNET Bugs.
As UNet is Deprecated we are moving to low maintenance mode, where critical issues can get fixes.
Closing this bug as part of cleaning-up the Bug List.
If you feel this bug is really a road-blocker, you can reopen the bug and we will work this one.