Add per scene Network Manager documentation
On the Network Manager page in the docs, it states:
"However it is also possible to have a separate Network Manager in each scene with different settings, which may be helpful if you wish to control incremental prefab loading, or different scene transitions."
I'm having some trouble getting this to work, when loading a new scene with a different Network Manager the new one just gets deleted with a warning:
""Multiple NetworkManagers detected in the scene. Only one NetworkManager can exist at a time. The duplicate NetworkManager will be destroyed."
Thanks!
Hello victor,
I had the same trouble as you. I finished using only one NetworkManager across all scenes (with the advice of Mirror staff on discord) , with a SceneManager.sceneLoaded callback to handle the non generic code per scene. But sure, documentation should be updated here
That solutions worked for me, thanks! Will leave it open to get an official answer though.
Network Manager is a singleton - there can be only one. I'll edit the doc to remove that sentence.