> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/creating-a-convai-powered-scene-from-template.md).

# 从模板创建由 Convai 驱动的场景

本指南将帮助你在 Unity 中创建一个已经包含 Convai Essentials 的场景。它会帮助你非常快速地开始使用我们的插件。

### 步骤 1）打开 *新建场景* 窗口

有两种方法可以打开新建场景窗口。第一种是在键盘上按 `Ctrl + N` （Windows）或 `CMD + N` （Mac）；第二种是依次选择“文件”->“新建场景”。

<figure><img src="https://2402152281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2Fdvja74eX2NEoxUPBWV48%2FScreenshot%202024-05-23%20153802.png?alt=media&amp;token=28cf6328-b3bf-4566-ab83-f62a5d769305" alt=""><figcaption><p>展示在 Unity 中打开“新建场景”窗口步骤的截图</p></figcaption></figure>

### 步骤 2）选择 Convai 场景模板

根据项目不同，可用的场景模板也会有所不同。本指南中，我们要使用 <mark style="color:绿色;">Convai 场景模板</mark> ，因此请选择该模板，然后点击 <mark style="color:绿色;">创建</mark> 按钮。

<figure><img src="https://2402152281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FEvs2PsTeM0FplFwbB6w4%2FScreenshot%202024-05-23%20154659.png?alt=media&amp;token=ab04dc60-7db8-4dc2-bda5-f8f4fbbd6dff" alt=""><figcaption><p>展示如何通过 Convai 场景模板创建场景的截图</p></figcaption></figure>

### 步骤 3）保存创建的场景

现在，你可以将新创建的场景保存到项目中的任意位置：在 Windows 上按 `Ctrl + S` ，或在 `Mac 上按 CMD + S` 。也可以依次选择“文件”->“保存场景”。

<figure><img src="https://2402152281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FrLTN2PyyufAB9qWae5Uq%2FScreenshot%202024-05-23%20160911.png?alt=media&amp;token=2994d989-8f7c-4fca-b20c-2b8e20b28278" alt=""><figcaption><p>展示如何保存场景的截图</p></figcaption></figure>

此时会打开“保存场景”窗口。选择所需的位置。本示例中，我们将场景保存在 Demo 文件夹中，但你也可以将它保存在 Assets 目录中的任意位置。

为场景命名，然后点击 <mark style="color:绿色;">保存场景</mark> 按钮

<figure><img src="https://2402152281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FpwOIXbAtWNJ4ORjaEYfg%2FScreenshot%202024-05-23%20161216.png?alt=media&amp;token=f1c0a8bf-0ff1-49e2-afb6-3523c4eaa9a2" alt=""><figcaption><p>展示新建的 Convai 驱动场景保存位置的截图</p></figcaption></figure>

现在，你可以按照我们的完整指南导入 Convai 角色或自定义角色。

{% content-ref url="/pages/500b43f637dd22a0165f455fa2b7dc601d9faf12" %}
[导入 Ready Player Me（RPM）角色](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/unity-importing-ready-player-me-rpm-characters.md)
{% endcontent-ref %}

{% content-ref url="/pages/42fe405003730e0e3c7d4d8d8e112c1a444d931d" %}
[导入自定义角色](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/importing-custom-characters.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/creating-a-convai-powered-scene-from-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
