- Home /
Question by
ElectricYtArt · Apr 06 at 12:46 AM ·
multiplayer-networking
so I have made a vr game and I need help with the multiplayer,hello I am making a vr game with photon
My code does not duplicate all of the objects in photon. It just duplicates some objects like the hands. using using System.Collections; using System.Collections.Generic; using UnityEngine; using Photon.Pun; public class NetworkPlayerSpawner : MonoBehaviourPunCallbacks { private GameObject spawnedPlayerGameObject; public override void OnJoinedRoom() { base.OnJoinedRoom(); spawnedPlayerGameObject = PhotonNetwork.Instantiate("",transform.position, transform.rotation); } public override void OnLeftRoom() { base.OnLeftRoom(); PhotonNetwork.Destroy(spawnedPlayerGameObject); } } So my game object duplicates, but not all of the other assets duplicate at all it is just the models I import into it.
Comment
Your answer