- Home /
Question by
RadTad2 · May 28 at 02:00 AM ·
networkingrpc
Code is being run as neither a server nor a client using Netcode
When I run the following ServerRpc, print statements in the method SpawnAvatar() for IsServer AND IsClient both return false. Is this a bug or is code called from within a ServerRpc not going to update those flags?
public void SpawnAvatarServerRpc()
{
ServerGameManager.Instance.SpawnAvatar(NetworkManager.Singleton.LocalClientId);
NotifyOfOwnershipClientRpc();
}
Comment