- Home /
Multiplayer - Players have wrong cameras
I try to make an multiplayer game but encountered the following problem: My players have the wrong cameras. So, I spawn a prefab that has an camera as child and the player should just see through that camera.
If there's just one player in the network mode(he's server), he has the right cam, but when the second player appears, he changes his camera with the one from him.
How can I fix that?
Answer by AngryOldMan · Feb 28, 2011 at 07:58 PM
start off by having all your cameras deactivated in the hierarchy or project (if you have them prefabed) then on function awake have them turn on their own cameras locally (so no need to send an RPC) We had the exact same problem. Also check your error messages, it should say that there is more than one camera in the scene. !! also important you have to do this for audio listeners as well!!
Your answer
Follow this Question
Related Questions
Multiplayer click and spawn 1 Answer
How to get players to re-spawn with a RPC. 0 Answers
playerControllerId higher than expected 1 Answer
Is this the right setup for a multiplayer game? 0 Answers
Network spawning 1 Answer