> 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/unreal-engine/guides/creating-metahuman-characters/change-the-parent-class-for-player..md).

# 更改 Player 的父类。

{% hint style="info" %}
这可以应用于第一人称玩家（FPP）或第三人称玩家（TPP）。
{% endhint %}

更改第一人称玩家（FPP）父类的步骤：-

1. 创建一个新项目作为第一人称项目，或导入到你已有的项目中。\
   **导入步骤：-** `内容浏览器 > 添加 > 向项目添加功能或内容包 > 第一人称 > 添加到项目。`

<figure><img src="https://lh4.googleusercontent.com/FSOGqzlc8NxLzWbLqNYHwft0Ow9v_e1W9pChuu1OzVbKNlRXx13ZQqEfmG_v14dhxwFeVQbrdcswCwYcm7MXQPLjVKccOdYS6lwxQdK1kBPYN5evG1AREYqMTLJI_24wpzdKw3Ib4tqzYow_G61xa0A" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/HdzDrA79R0xedYTQmJFOkjCq9IXczPyWPxiwezKJMesOaff6TYvFXPVsrVWl00174KaLdF0q9666Ekx8haPQtmcWzu2brcLrUAAZzcXsrVILb4d4VBpi_tIIq1wYS4YeqDWTfCHt_pU7akoaf4mww1U" alt="" width="375"><figcaption><p>导入内容包。</p></figcaption></figure>

将你的游戏设置为默认第一人称游戏的步骤：-

**步骤：-** `编辑 > 项目设置 > 地图和模式 > 默认模式 > 默认 GameMode > BP_FirstPersonGameMode`.

<figure><img src="https://lh3.googleusercontent.com/gHObx9QUsJR99DcfscisTcd-a5remqR-__7JfxUTYeHHeSSkmSfXnii24ZzmJpUehGx9RS4iRUbtLbZtglUFMnt3tt2D9TW_hcXzABpYdjFIQc6x_IItmG3M1JXjzTTGk6ZuFIsHjhedPvsynf_aASE" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/63iSr_Bj1trCNUNpHVg0Ir0toMlYPEBZkFfBeqBJ5UTX_RJNzAZhurQu88pPpXrLPy5cojovhwAXmWCwHO6rlAd8dxNy9nqLOOL15Qyu-95FMn0kREPx5Xw9pe62xFzopelYdTm3vTyyrvR3o3sCH5w" alt="" width="375"><figcaption><p>选择默认游戏模式。</p></figcaption></figure>

2. 然后前往 **`全部 > 内容 > FirstPerson > 蓝图 > BP_FirstPersonCharacter`**.
3. 点击类设置，然后在详细信息部分下的 **`“类选项”`** 将父类更改为 **`“ConvaiBasePlayer”。`**

<img src="https://lh3.googleusercontent.com/yXsy1Zy7lfMCTEcj8wqpTZI44UbaDDYiasR9dWFnhzZmTvkV2cXy5-B0U9jNRI2U2lg9jBSkai57RIQ_InSSuaImlCuQIh9LNJaCrZ4Y3wTme_fj6gfMzsBf_HfWE9ICt7Tk_V4J5gs4JH6Ibvlq-Sc" alt="" data-size="line">

<figure><img src="https://lh4.googleusercontent.com/IIukEpo8niZHMAox4z4f-dkre2apO9DHZMKTGzCHfbYFSOZBSboGPnvhlKTDJdDvMTzuN7XND-3z52x42GlpiH1omXDrEeAq3crnK79_EFBobHAByuQtOP1QJbg04ZemJq0eojJb4DiRwyZoo4WNCuY" alt="" width="375"><figcaption><p>设置父类</p></figcaption></figure>

4. 点击保存并编译，就可以了。

{% hint style="info" %}
对于第三人称玩家，只需按相同步骤操作，并查找 Third Person
{% endhint %}


---

# 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/unreal-engine/guides/creating-metahuman-characters/change-the-parent-class-for-player..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.
