> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daydream.live/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Set up the Daydream Unity plugin for AI video effects

# Unity Plugin Installation

Add real-time AI video effects to your Unity projects.

<img src="https://mintcdn.com/dd/hCXQ24mNm1zmMUWz/images/unity.png?fit=max&auto=format&n=hCXQ24mNm1zmMUWz&q=85&s=ee8c5235038502152bc16b70402305f4" alt="Daydream Unity Plugin" width="3680" height="2390" data-path="images/unity.png" />

## Requirements

| Dependency                                                               | Version             |
| ------------------------------------------------------------------------ | ------------------- |
| Unity                                                                    | 6 (6000.x) or later |
| [WebRTC package](https://docs.unity3d.com/Packages/com.unity.webrtc@3.0) | 3.0.0               |

You'll also need a [Daydream account](https://daydream.live).

<Note>
  The plugin works with URP, HDRP, and Built-in render pipelines.
</Note>

## Installation

1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL...**
3. Enter the repository URL:

```
https://github.com/daydreamlive/daydream-unity.git
```

4. Also install the [WebRTC package](https://docs.unity3d.com/Packages/com.unity.webrtc@3.0) if not already present

## Quick Start

Once installed, adding AI effects to your scene takes a few clicks:

### 1. Add the Component

1. Select any **Camera** in your scene
2. Click **Add Component** in the Inspector
3. Search for **Daydream** and add it

### 2. Log In

1. Press **Play** — a browser window opens for authentication
2. Sign in with your [Daydream](https://daydream.live) account
3. The plugin automatically receives your credentials

<Note>
  Your login persists between sessions. Credentials are saved to `~/.daydream/credentials` and shared across Daydream plugins (Unity, OBS, TouchDesigner).
</Note>

To use an API key directly, paste it into the **API Key** field in the Inspector before pressing Play.

### 3. Configure Your Effect

1. Enter a prompt describing your desired effect:
   * "anime character, vibrant colors"
   * "oil painting, impressionist style"
   * "cyberpunk, neon lights"
2. Adjust parameters as needed
3. Press **Play** to start the AI processing

The camera output is sent to the Daydream API for AI transformation, and the result is displayed as a fullscreen overlay. A picture-in-picture view shows the original camera feed.

```mermaid theme={null}
flowchart LR
    A[Unity Camera] --> B[Daydream Component]
    B --> C[AI Output Overlay]
    B --> D[Daydream Cloud]
```

## Filter Settings

| Setting         | Description                                        |
| --------------- | -------------------------------------------------- |
| **Prompt**      | Text describing the desired visual effect          |
| **Model**       | AI model to use (SDXL Turbo, SD Turbo, etc.)       |
| **Resolution**  | Output size in pixels (384-1024)                   |
| **Guidance**    | How closely to follow the prompt (0.1-20.0)        |
| **ControlNets** | Preserve structure from input (depth, edges, etc.) |
| **IP Adapter**  | Apply style from a reference image                 |

## Demo Scene

Import the **Demo Scene** sample from the Package Manager for WASD + mouse camera controls and sample geometry for testing.

<Note>
  The demo scene requires the [Input System](https://docs.unity3d.com/Packages/com.unity.inputsystem@1.18) package.
</Note>

## Troubleshooting

### Component Not Available

* Make sure you're using Unity 6 (6000.x) or later
* Verify the WebRTC package (3.0.0) is installed
* The Daydream component can only be added to GameObjects with a Camera

### Login Issues

* Ensure your browser can open new windows
* Try logging in at [daydream.live](https://daydream.live) first
* Check your firewall isn't blocking localhost connections

### No Video Output

* Check the Unity Console for `[Daydream]` log messages
* Verify your API key is valid
* Ensure you have a stable internet connection

## Next Steps

* [Features](/sdks/unity/features) - ControlNets, IP Adapter, prompt scheduling
* [Scripting API](/sdks/unity/scripting) - C# scripting and programmatic control
* [Quickstart](/api/quickstart) - Full Daydream quickstart guide
