Files
2026-09-20 15:53:11 +08:00
..
2026-09-20 15:53:11 +08:00
2026-09-20 15:53:11 +08:00

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 Camerainstantiating-a-local-camera.mdinstantiated-camera-card.png
Using the Scene Camerausing-the-scene-camera.mdscene-camera-card.png
Basic Setup with Cinemachinebasic-setup-with-cinemachine.mdcinemachine-camera-card.png

  1. This is excluding cameras used for minimaps, rear view mirrors, etc. ↩︎