[Multiplayer Lobby] NetworkManager has a NetworkIdentity component
If I add a NetworkManager, it says
NetworkManager has a NetworkIdentity component. This will cause the NetworkManager object to be disabled, so it is not recommended. UnityEditor.NetworkScenePostPorcess:OnPostProcessScene()
However, none is added -
I did, however, notice that my LobbyManager disappears at runtime -- seems that NetworkManager eats LobbyManager?
Help :/ I'm not really sure what to do - documentation is sparse on this subject.
Answer by larus · Nov 15, 2016 at 11:49 AM
The network lobby manager is a class which inherits the NetworkManager, so you have two network managers there (you should only have one). So the warning message is actually referring to the NetworkIdentity which is on the same object as the network lobby manager (shown in the second screenshot). If you get rid of one manager things will hopefully work for you (so the non-lobby one if you want to try the lobby).
If you haven't seen it already here are some docs about the lobby manager and a reference to an example on the asset store: https://docs.unity3d.com/Manual/UNetLobby.html
Excellent! I just discovered that I can use things like Start$$anonymous$$atch$$anonymous$$aker() with just the lobbymgr and was running back here to post my discovery haha ;D yea this is great. It's funny -- almost all the examples I saw used Network$$anonymous$$anager ins$$anonymous$$d of NetworkLobby$$anonymous$$anager -- I think I'm just running into old guides and demos. Cheers!
Your answer
Follow this Question
Related Questions
CS0030 Cannot convert type 'UnityEngine,Networking.PlayerController' to 'PlayerController' 1 Answer
A lobby room where multiple player can compete with each other 0 Answers
Simple Question: Is the Unity 5.4+ "NetworkLobbyManager" bugged? 0 Answers
Modifying Unity Network Lobby 0 Answers
CS0030 Cannot convert type 'UnityEngine,Networking.PlayerController' to 'PlayerController' 0 Answers