> For the complete documentation index, see [llms.txt](https://morphic.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://morphic.com/docs/zh/you-xi-she-ji/generating-in-game-assets.md).

# 生成游戏内素材

下面是一个关于如何在 Morphic 上生成游戏内素材的快速教程：

{% embed url="<https://youtu.be/Ymp5ttNEEw4>" %}

1. 一旦你的 [风格模型已训练完成](/docs/zh/you-xi-she-ji/train-a-style-model.md)，在 Morphic 中打开一个新文件
2. 在提示栏中，描述你想生成的素材类型
3. 在提示栏的风格模型下拉菜单中，选择你训练好的模型以匹配你游戏的视觉风格
4. 点击“生成”来创建你的素材
5. 选择你想在游戏中使用的生成素材
6. 使用分割或图层功能将素材从背景中分离出来
7. 使用包含点标记你想提取的关键元素（例如枪、剑、卡车）
8. 在背景周围添加排除点，帮助将这些对象从场景中隔离并干净地分离出来
9. 点击“分割”按钮，将所选对象与背景分离
10. 可自由移动分离出的素材，或根据需要将它们放入另一个画面中
11. 以你偏好的格式导出素材（目前支持 PNG、JPEG 或 WebP）

这就是如何生成游戏内素材、将它们从背景中干净地分离出来，并导出以用于你的项目。

***

### 联系我们获取帮助

如果你遇到任何问题或有任何疑问，欢迎随时联系我们。我们很乐意提供帮助，请写信给我们： [**support@morphic.com**](mailto:support@morphic.com)**.**


---

# 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://morphic.com/docs/zh/you-xi-she-ji/generating-in-game-assets.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.
