unet-steamworks
unet-steamworks copied to clipboard
Rpc not working on nonPlayer objects
#hi,
I added gameobjects with networkedIdentity to my scene and had to add NetworkServer.SpawnObjects();
right after NetworkServer.Listen(0);
and it seems to work. The objects are activated in the scene and have a netid and sceneid. The issue is that when i try to call a ClientRpc from those objects the rpc is never called on the client.
note that the rpc are working fine on players.
I'm looking around in unet's code but I'm not sure what could be causing this issue, any idea?
This is causing OnStartServer() to be called twice on NetworkBehaviour objects.