Pre-Networking

I’ve got a very basic networking related question. I’m not entirely certain how it all works as I’m still learning as I go along but it looks simple enough to achieve through Unity, but I need to know how cameras work in networking.

Basically I have a Player prefab and its scripts attached to them and the camera scripts attempt to find the main camera, create it if non-existent, and parent it to the player.

How does this work when I want to start online play? Obviously I can’t have a bunch of players trying to grab the same camera, so should I create a camera per player? I wouldn’t think this would work because of audio listeners, but anyway, my basic question is how to handle the camera before I jump into networking.

Any help is greatly appreciated!

Why would you need a camera per player ? Do you want to render more then one camera per instance ?
When you create a prefab with a camera, you need to make sure you only enable the camera for the local instance and disable it on all the other players.

I was asking because I didn’t know how it works, but you did lead me into the proper direction and I found that this is done with a Network View component, which I’ll figure out how that works when I need it, thanks!