Search Issue Tracker
Won't Fix
Votes
3
Found in
2017.1.0b8
Issue ID
918319
Regression
No
NetworkManager allows adding a game object with NetworkIdentity instead of prefab
NetworkManager allows adding a game object with NetworkIdentity instead of prefab
1. What happened
User is able to add game object with NetworkIdentity instead of prefab, that causes errors and misleads user.
2. How we can reproduce it using the example you attached
To repro:
1. Create a new scene.
2. Create and empty object, add Network Manager and Network Hud components.
3. Create a cube and add NetworkIdentity component.
4. In NetworkManager - Spawn Info - Player Prefab add Cube.
5. Add scene to build settings and build.
6. In Player hit Host.
7. In Editor hit Play and Client.
Actual result:
1. In Host both object and player are spawned.
2. In Client only player is spawned and error in log:
Spawn scene object not found for 1
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
Expected result:
1. There should be no ability to add a non-prefab object to NetworkManager.
2. Error "Spawn scene object not found for 1" is not understandable. Error happens in OnObjectSpawnScene method, but error at least might point that digit is a scene ID.
Reproduced in 5.5.4f1, 5.6.1p2, 2017.1.0b7, 2017.1.0b8, 2017.2.0a2
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
- Incorrect ScrollToItem behavior when called on a deattached ListView
- Zooming in/out in Scene View window on the display the zoom takes place in does not work
- Changing Game View resolution when there are 2 Game View Windows on 2 different displays makes the view stretched
- Maximising Game view window on one display makes black bars appear on another display
- Creating a 3D Object when using 2 monitors and 2 Game View Windows on different monitors the created 3D Object only appears on one of them
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 on this one.
For more information and next steps see this [blog post](https://blogs.unity3d.com/2018/08/02/evolving-multiplayer-games-beyond-unet/) and the [FAQ](https://support.unity3d.com/hc/en-us/articles/360001252086-UNet-Deprecation-FAQ)