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
- Shader warning in 'Hidden/Core/DebugOccluder' thrown after building High Definition 3D Sample Template
- Audio Mixer “+” buttons overlap with UI when the Audio Mixer window layout is set to Horizontal
- "Clear" button in the "Set project display name" closes all the pop-up instead of clearing just a name from the field
- Video Player renders no video on specific devices when using Vulkan
- The Editor slows itself down by showing tons of warnings when the majority of TransformAccessArrays content are NullRefs
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)