- Home /
Question by
ZuhairGhias · Apr 28, 2018 at 06:28 AM ·
networkingmultiplayernetwork
How do we use a game manager with Unity networking?
I want to have a game manager that maintains the state of the networked game in unity but I read that all NetworkBehaviourgameobjects must be spawned into the scene. That creates a lot of problems because I have different game managers for different scenes and each game manager keeps references to game objects in that scene.
How am I supposed to work around this?
One thing I figured is that I could ignore this warning and just use a game manager that inherits from NetworkBehaviour. This way the game manager isn't synchronized but I can just use the one on the server to spawn prefabs etc. But that could be problematic in the future. What is a good solution for this?
Comment