description
| description |
|---|
| How to setup a player camera for your multiplayer setup. |
Setting Up a Camera
When it comes to multiplayer, a player's camera setup can seem quite tricky to understand. In reality it's often quite simple, only one1 camera should exist for your local player.
The most reliable method is to create a camera prefab and instantiate it locally when the player's character spawns. Alternatively, you can place a camera in the scene ahead of time and have the player’s object "claim" it upon spawning.
Things get a bit more nuanced when working with Cinemachine. We'll briefly explore how to manage this setup effectively.
| Instantiating a Local Camera | instantiating-a-local-camera.md | instantiated-camera-card.png |
| Using the Scene Camera | using-the-scene-camera.md | scene-camera-card.png |
| Basic Setup with Cinemachine | basic-setup-with-cinemachine.md | cinemachine-camera-card.png |
-
This is excluding cameras used for minimaps, rear view mirrors, etc. ↩︎