# 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 one[^1] 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](https://unity.com/features/cinemachine). We'll briefly explore how to manage this setup effectively.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Instantiating a Local Camera</td><td><a href="/pages/BgJXuXbfubpDqUqdXCzZ">/pages/BgJXuXbfubpDqUqdXCzZ</a></td><td><a href="/files/ZHWVp2rkPnYXCRv7rJcr">/files/ZHWVp2rkPnYXCRv7rJcr</a></td></tr><tr><td>Using the Scene Camera</td><td><a href="/pages/0emSr8HvCRQtNh9rguAQ">/pages/0emSr8HvCRQtNh9rguAQ</a></td><td><a href="/files/vrABv1qq9G8E5SMPHZro">/files/vrABv1qq9G8E5SMPHZro</a></td></tr><tr><td>Basic Setup with Cinemachine</td><td><a href="/pages/9Ipgs7Hwzl3RpSMk0a6S">/pages/9Ipgs7Hwzl3RpSMk0a6S</a></td><td><a href="/files/Vim2cW0YY8sfwqI3BE1g">/files/Vim2cW0YY8sfwqI3BE1g</a></td></tr></tbody></table>

[^1]: This is excluding cameras used for minimaps, rear view mirrors, etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fish-networking.gitbook.io/docs/tutorials/getting-started/setting-up-a-camera.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
