unity3d - NetworkServer is not active. Cannot spawn objects without an active server -


i have been looking answer problem have not found solves problem. prefab registered.

here code piece, in following class:

"public class mynetworkmanager : networkmanager"

public override void onstartserver() {     networkserver.registerhandler(msgtypes.playerprefab, onresponseprefab);     base.onstartserver();      spawncard ();  }  void spawncard () {     gameobject go = gameobject.instantiate (theguy) gameobject;     networkserver.spawn (go); } 

can hint problem is?

look @ remote actions call method on other client.

https://docs.unity3d.com/manual/unetactions.html


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -