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
- "Cameras" tooltip is too far from the window
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- "State comes from an incompatible keyword space" errors when building Entity catalogs
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
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)