Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Can't send a transform to the client

$
0
0
Hi guys, I can't figure out how to send back a Transform to the client from the server:
Code (CSharp):
  1. [ServerRpc]  
  2. void spawnNewPlayer()
  3.     {
  4.         vr_rig = gameObject.GetComponent<VRRig>();
  5.         xrRigInstace = Instantiate(XRRigPrefab, playerCourtPosition, playerCourtRotation);
  6.         gunInstance = Instantiate(GunPrefab, Vector3.zero, Quaternion.identity);
  7.         xrRigInstace.GetComponent<NetworkObject>().Spawn();
  8.         gunInstance.GetComponent<NetworkObject>().Spawn();...
Can't send a transform to the client

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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