- Home /
NetworkIdentity Disabling GameObjects
Is there any way to have a object with a NetworkIdentity that can be used on a offline level and a online level (Game Controller, Sky controller etc.)
I don't quite get your actual problem. Of course all objects in your scene can be used no matter if you just have a local player or remote players as well.
Scene objects (objects you placed in a scene in the editor) with a NetworkIdentity script are disabled by default since they are enabled when the "scene spawn" happens. You might want to take a look at Scene Objects and NetworkServer.SpawnObjects.
I also doesn't understand your answer. It's way too vague.
Answer by MakakWasTaken · Sep 08, 2015 at 08:38 PM
Well, I found a workaround but it is quite messy. I have created a gameobject called NetworkVariables which isn't destroyed on load. It then holds all the variables that needs to be synced when the client is connected.