- Home /
How to reset netID that wasn't spawned
Everything works fine when I start the host on my mobile devince, then I connect to it in my computer. But when I stop the host in my mobile and start the host on my computer I get this error:
Object has non-zero netId 2 for Tiles
Object has non-zero netId 1 for FireHazard
Tiles and FireHazard GO is already in the scene and have NetworkBehaviour scripts attached, they aren't spawned and I have only one scene in my game. I need to know how to reset the netId, put it back to "0".
Are there any plans to change the behaviour such that the scene gets reset on disconnection from the server. We have a single large scene that is loaded once at application launch, and also contains many networked objects.
Answer by iagoccampos · Nov 12, 2015 at 12:43 PM
The only way to solve it is spaw the Tiles and the FireHazard with NetworkServer.Spawn(go).