> 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-unity-sdk/advanced-topics.md).

# 自定义并扩展 SDK

Convai Unity SDK 可直接开箱使用，适用于大多数训练模拟、交互式体验和游戏。本节介绍在默认设置不适合你的部署时应如何处理：用自定义实现替换内置提供程序、借助内置遥测诊断性能问题，以及向运行时添加自定义模块。

{% hint style="info" %}
这些页面假定你熟悉 C#，并了解 Unity 组件的生命周期。如果你还在搭建第一个场景，请从 [入门指南](/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/getting-started.md) 部分开始。
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>凭据、身份和存储</strong><br>用你自己的实现替换 SDK 的凭据、身份和持久化系统。对于 CI 流水线、基于身份验证的身份管理以及云存档集成，这些都是必不可少的。</td><td><a href="/pages/b6e1d5b82a92f7950701bd2576065db6c0349005">/pages/b6e1d5b82a92f7950701bd2576065db6c0349005</a></td></tr><tr><td><strong>日志、指标和重试策略</strong><br>按子系统调整日志详细级别，读取服务器端流水线延迟指标，并配置重试行为以实现更稳健的连接。</td><td><a href="/pages/fef9ce3a50abea0da1b1bc0e993c3308a067a94a">/pages/fef9ce3a50abea0da1b1bc0e993c3308a067a94a</a></td></tr><tr><td><strong>运行时模块系统</strong><br>了解何时构建自定义模块、模块生命周期如何工作，以及哪些 SDK 扩展点可以安全使用。</td><td><a href="/pages/007b237f8ee6f8a26b307152ee716a33905cd6da">/pages/007b237f8ee6f8a26b307152ee716a33905cd6da</a></td></tr></tbody></table>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unity-sdk/advanced-topics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
