I have problem with player's camera
Hello everyone,
I have problem with camera and i use photon networking.
When player join to game all players have same camera how can i fix this?
Code Here:
https://pastebin.com/NwiMENVh
I have problem with camera and i use photon networking.
When player join to game all players have same camera how can i fix this?
Code Here:
https://pastebin.com/NwiMENVh
0
Comments
-
I had a very similar problem. My players swaped the FPS cameras. Quite funny but not usefull.
You can try
PlayerPrefab with camera field. In Start() you can delete the cam if PhotonView.IsMine == false.
That didn´t work for me, because I´m working with an Oculus and there you cannot delete the cam. But fortunally it´s possible to deactivate the GameObject with the camera component.
if(PV.IsMine)
myCamera.SetActive == false;
You shopuld first try Destroy(myCamera)
Unity takes last spawned cam for actual main camera and we have to handle that...0