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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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)