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
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
- Crash on OnDemandScheduler::HandleImportWorkerLogs when performing various Unity operations
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)