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

Failed Network.Instantiate because we are not connected.

$
0
0
I am creating a multiplayer game and have begun work on the inventory, but when it comes to dropping items into the world, I have run into the problem named in the title. Here is the code relating to the error.

Code (CSharp):
  1. void DropItem(){
  2.         GameObject droppedItem = Network.Instantiate(Resources.Load("Prefabs/" + draggedItem.itemName), gameObject.transform.position, Quaternion.identity, 0) as GameObject;
  3.         droppedItem.GetComponent<DroppedItem>().CmdSetStats(draggedItem.itemID,...
Failed Network.Instantiate because we are not connected.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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