# Compile and run a sample project (/en/realtime-media/broadcast-streaming/build/set-up-your-project/compile-run-sample-project/unity)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Agora provides \[Open-source sample projects on GitHub]\(https\:// github .com/ AgoraIO-Extensions /Agora-Unity-Quickstart/tree/main/API-Example-Unity) to demonstrate the implementation of basic and advanced Video SDK features.

    This page shows how to compile, configure, and run the Video SDK Unity sample project.

    ## Prerequisites [#prerequisites-9]

    * [Unity Hub](https://unity.com/download) and [Unity Editor](https://unity.com/releases/editor/archive) 2018.4.0 or higher

    * A suitable operating system and compiler for your development platform:

      | Development platform | Operating system version | Compiler version                      |
      | :------------------- | :----------------------- | :------------------------------------ |
      | Android              | Android 4.1 or later     | Android Studio 4.1 or later           |
      | iOS                  | iOS 10.15 or later       | Xcode 9.0 or later                    |
      | macOS                | macOS 10.15 or later     | Xcode 9.0 or later                    |
      | Windows              | Windows 7 or later       | Microsoft Visual Studio 2017 or later |

    * A camera and a microphone

    * A valid Agora account and project. Please refer to [Agora account management](../manage-agora-account) for details.

    * Installed [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)

    ## Project setup [#project-setup-9]

    ### Get the sample project [#get-the-sample-project-9]

    Obtain the sample project using one of the following methods:

    * Go to the [SDKs](../../../sdks) page, download the latest version of the Video SDK, and unzip it. You see a `.unitypackage` file.

      Open the `.unitypackage` file. An **Import Unity Package window** pops up. Click **Import** to import the SDK into your project. After the import is complete, you see the `Agora-RTC-PLUGIN` folder in the project panel.

      ![image](https://assets-docs.agora.io/images/video-sdk/run-compile-unity-get-project.png)

    * Run the following command to clone the repository locally:

      ```bash
      git clone https://github.com/AgoraIO-Extensions/Agora-Unity-Quickstart.git
      cd Agora-Unity-Quickstart/API-Example-Unity
      ```

    ### Configure the sample project [#configure-the-sample-project-8]

    In `Agora-RTC-PLUGIN/API-Example/AppIdInput.asset`, fill in the App ID, temporary token, and channel name you obtained from the Agora Console.

    ![image](https://assets-docs.agora.io/images/video-sdk/run-compile-unity-get-project-2.png)

    ## Run the sample project [#run-the-sample-project-9]

    1. The `API-Example` folder contains two folders, `Basic` and `Advanced`, that contain usage examples of basic and advanced use-cases of Agora SDK. Select the demo you want to run and click **Play** to compile.

       ![image](https://assets-docs.agora.io/images/video-sdk/run-compile-unity-step-1.png)

    2. Choose video calls as an example. After successful compilation, you see your local video preview.

       ![image](https://assets-docs.agora.io/images/video-sdk/run-compile-unity-step-2.png)

    3. To test various audio and video interaction use-cases, connect to the [Agora web demo](https://webdemo.agora.io/basicVideoCall/index.html), or install and run the sample project on a second device. Make sure you use the same app ID on both devices. When you join the same channel from two devices, you can see and hear each other.

       ![image](https://assets-docs.agora.io/images/video-sdk/run-compile-unity-step-3.png)

    
  
      
  
      
  
      
  
