> 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/convai-unreal-engine-plugin/features/spatial-awareness/spatial-awareness-reference.md). Agents can also search and read this documentation through its [MCP server](https://docs.convai.com/api-docs/~gitbook/mcp).

# 空间感知设置参考

查找所有空间感知和对象命名项目设置、默认值、单位以及启用条件。

每个控制空间感知的项目设置，以及用于筛选单个聊天机器人的接收内容的聊天机器人级偏好设置的权威参考。事实来源： `Source/Convai/Convai.h` (`UConvaiSettings`，类别 **空间感知** 和 **对象**）以及 `Source/Convai/Public/ConvaiSpatialPreferences.h` (`FConvaiSpatialAwarenessPreferences`).

以下所有项目设置均可在 **编辑 > 项目设置 > 插件 > Convai**.

### 该 `Spatial Awareness` 类别

| 显示名称    | 属性                           | 默认值      | 单位 | 编辑条件                                          |
| ------- | ---------------------------- | -------- | -- | --------------------------------------------- |
| 启用空间感知  | `bEnableSpatialAwareness`    | `true`   | —  | 无（总开关）                                        |
| 启用视线检测  | `bEnableLineOfSight`         | `false`  | —  | `bEnableSpatialAwareness`                     |
| 近距离     | `NearbyDistance`             | `1000.0` | 厘米 | `bEnableSpatialAwareness`                     |
| 中距离     | `ModerateDistance`           | `4000.0` | 厘米 | `bEnableSpatialAwareness`                     |
| 启用关系    | `bEnableRelations`           | `true`   | —  | `bEnableSpatialAwareness`                     |
| 关系聚类距离  | `RelationClusterDistance`    | `600.0`  | 厘米 | `bEnableSpatialAwareness && bEnableRelations` |
| 从玩家视角描述 | `bDescribePlayerPerspective` | `true`   | —  | `bEnableSpatialAwareness`                     |

* `NearbyDistance` 是一个距离上限，低于该值时，主体会被描述为“就在附近”； `ModerateDistance` 是一个距离上限，低于该值时，主体会被描述为“有一段距离”。超过 `ModerateDistance`后，主体会被描述为“很远”。 `ModerateDistance` 应设置为大于 `NearbyDistance`.
* `bEnableLineOfSight` 每次轮询都会为每个聊天机器人/主体组合执行一次射线检测。射线无法检测到的主体会被报告为不在视野内，其位置也会被隐藏。
* `RelationClusterDistance` 用于限定两个主体之间的距离；只有距离不超过此值时，才会描述它们之间的关系（“箱子在木桶旁边”）。
* `bDescribePlayerPerspective` 会使发送给聊天机器人的空间文本长度大致翻倍，因为每条事实都会增加一个相对于玩家的描述。

请参阅 [空间感知的工作原理](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/spatial-awareness/how-spatial-awareness-works.md) 了解每项设置会如何改变角色接收到的句子。

### 该 `Objects` 类别

| 显示名称     | 属性                                                       | 默认值       | 单位 | 编辑条件 |
| -------- | -------------------------------------------------------- | --------- | -- | ---- |
| 重复名称后缀样式 | `ObjectNameSuffixStyle` (`EConvaiObjectNameSuffixStyle`) | `Numeric` | —  | 无    |

`ObjectNameSuffixStyle` 仅控制后缀样式—— `Numeric` （“Crate”、“Crate 2”、“Crate 3”）或 `Alphabetical` （“Crate”、“Crate A”、“Crate B”）——适用于名称相同且 **未** 合并的 Convai Object Component。第一个注册的对象保留原始名称。是否将一组同名对象合并为一个逻辑对象，而不是添加后缀，是 Convai Object Component 上针对每个对象单独设置的选项，并非项目设置——请参阅 [合并同名对象](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/spatial-awareness/merge-same-named-objects.md).

### 每个聊天机器人的空间偏好设置

这些不是项目设置——它们位于每个 `UConvaiChatbotComponent`的 `SpatialAwareness` 属性（`FConvaiSpatialAwarenessPreferences`，类别 **Convai | 空间感知**，高级显示）中。这些设置会筛选上述空间处理流程发送给单个聊天机器人的内容；如果项目设置中的 `Enable Spatial Awareness` 处于关闭状态，则不会产生任何效果。

#### 周围环境

| 属性                     | 类型                       | 默认值             | 说明                                                                                                                                              |
| ---------------------- | ------------------------ | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `bReceiveSurroundings` | `bool`                   | `true`          | 是否告知此聊天机器人物体、其他角色和玩家相对于它的位置。                                                                                                                    |
| `SurroundingsResponse` | `EC_RunLLMOption`        | `Never`         | 周围环境发生变化时，聊天机器人的响应方式。 `Never` 静默更新； `Auto`/`Always` 还会提示 AI 作出响应。                                                                               |
| `SurroundingsDelivery` | `EConvaiContextDelivery` | `Send Normally` | 周围环境变化何时传递给聊天机器人。仅当 `SurroundingsResponse` 为 `Auto`/`Always`. `Send Normally` 会将变化合并到下一次计划发送中； `Wait Until Conversation Is Idle` 会将变化暂存，直到无人交谈。 |

#### 关系

| 属性                  | 类型                       | 默认值             | 说明                                                                                             |
| ------------------- | ------------------------ | --------------- | ---------------------------------------------------------------------------------------------- |
| `bReceiveRelations` | `bool`                   | `true`          | 是否告知此聊天机器人附近事物之间的关系，而不受以下因素影响 `bReceiveSurroundings`.                                          |
| `RelationsResponse` | `EC_RunLLMOption`        | `Never`         | 当这些关系发生变化时，聊天机器人如何响应。 `Never` 静默更新； `Auto`/`Always` 也会提示 AI 做出响应。                              |
| `RelationsDelivery` | `EConvaiContextDelivery` | `Send Normally` | 关系变更何时传达给聊天机器人。仅当 `RelationsResponse` 为 `Auto`/`Always`时才相关。与 `SurroundingsDelivery 使用相同的两个值`. |

### 后续步骤

{% content-ref url="/pages/280824f0950858984da0cf561a8148bbd7eee0e8" %}
[空间感知快速开始](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/spatial-awareness/spatial-awareness-quick-start.md)
{% endcontent-ref %}

{% content-ref url="/pages/7ae0cd173a36a87a1546f41623ce3ca4da2a289b" %}
[排查空间感知问题](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/spatial-awareness/troubleshoot-spatial-awareness.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/convai-unreal-engine-plugin/features/spatial-awareness/spatial-awareness-reference.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.
