Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Spawn Prefab with NetworkBehaviour on Children

$
0
0
When I spawn a prefab that has a NetworkBehaviour, it works great, but none of the NetworkBehaviours on its children are spawned with it. The children exist in the scene on both server and client, but RPCs on these children trigger a warning:

Code (CSharp):
  1. ClientRpc call on un-spawned object
When I check the NetworkIdentity on the children, they are neither IsServer nor IsClient. What's the best way to link child network identities on a spawned prefab?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>