# Avatar Camera

This component should be attached to the camera which is looking at your 3D Avatar.&#x20;

<figure><img src="/files/DCtFK0H1rvSK3vWQv4tY" alt=""><figcaption></figcaption></figure>

## Transition Time

When the `SetBackgroundColor()` method is called, it will transition to the new color value, and will take this amount of time to complete the transition.

{% hint style="success" %}
If you are using [**Portraits Realtime Color**](broken://pages/RDAw6Eah75FNpB9wDSvK) system to manage the background color, you'll likely want to keep the Transition Time value to be non-zero, but fairly low. Without any transition, you may notice hue shifts during low-light situations.

Keeping the minimum color higher (on the `PortraitsRealtimeColor` class), and ensuring there is some transition time for the background color changes will minimize this effect.

However, if the Transition Time is too long, when realtime lights affect the player position, the impact will not be visible in the background until the transition is closer to completion.

For fast lighting changes, this means that the impact may not appear before the light effect has expired.
{% endhint %}

## Portrait Camera

This should be automatically assigned, if you've attached this component to the `Camera` object.&#x20;


---

# 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://infinitypbr.gitbook.io/magic-pig-games/other/portrait-avatars/avatar-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.
