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

UNET - Spawn scene object not found

$
0
0
I'm looking into UNET, but I'm having some trouble getting a client to spawn GameObjects.

I have a host, which correctly creates a number of GameObjects (from prefabs that are registered in the Inspector of the NetworkManager).

Code (CSharp):
  1.     public GameObject unitPrefab;
  2.  
  3.     {
  4.         Debug.Log("Spawn object " + unitPrefab.name);
  5.  
  6.         GameObject go = (GameObject)Instantiate(unitPrefab, position, orientation);...
UNET - Spawn scene object not found

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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