> 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/game-design/generating-in-game-assets.md).

# 生成游戏内资源

Morphic 允许你创建风格参考，以保持视觉一致性，并利用其 AI 能力生成可用于游戏设计和开发流程的资源。

下面是一个关于如何在 Morphic 中生成游戏内资产的快速教程：

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

1. 一旦你的 [风格参考准备好后](/docs/zh/game-design/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, and the optional `goal` query parameter:

```
GET https://morphic.com/docs/zh/game-design/generating-in-game-assets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
