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