# 项目设置

> Configure Vivox project settings in your Unity game.

根据操作系统，确认启用了以下设置，以确保 VivoxUnity 可以在后台正确运行。

在 Windows 和 macOS 上，选择 **Edit > Project Settings**，然后启用 **Run In Background** 复选框。


**Frame:**
![](/api/media?file=/vivox-unity/media/images/run-in-background-checkbox.png)

在 iOS 上，选择 **Player Settings > Other Settings > Configuration**，然后在 **Behavior in Background** 菜单中，选择 **Exit**。


**Frame:**
![](/api/media?file=/vivox-unity/media/images/ios-player-settings.png)

> **Note:**
>
> 注意：Vivox SDK 不处理应用程序的自动暂停和恢复。在几乎所有情况下，暂停的应用程序会失去与 Vivox 服务器的连接。若要使应用程序在后台运行时暂停，必须在变为暂停状态之前，手动存储连接。恢复应用程序之后，Vivox SDK 必须重新连接到 Vivox 服务器，任何频道都需要重新加入。
