rust-bevy-asset-pipeline
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRust Bevy Asset Pipeline
Rust Bevy资源加载管道
Use this skill to make Bevy assets explicit, typed, validated, and packageable.
The goal is to remove scattered string paths and make loading state observable.
使用本技能可让Bevy资源变得明确、类型化、可验证且可打包。
目标是消除分散的字符串路径,让加载状态可被观察。
Core Workflow
核心工作流程
- Inventory images, atlases, fonts, sounds, music, and data files.
- Create a typed catalog resource that owns paths and loaded handles.
- Validate paths before gameplay systems depend on the assets.
- Load assets in a dedicated loading state or plugin.
- Pass handles through resources/components; avoid reloading from gameplay systems.
- Smoke test release packaging from the same runtime layout users will run.
- 盘点图片、图集、字体、音效、音乐和数据文件。
- 创建一个类型化的目录资源,用于管理路径和已加载的句柄。
- 在游戏玩法系统依赖资源之前验证路径。
- 在专门的加载状态或插件中加载资源。
- 通过资源/组件传递句柄;避免从游戏玩法系统中重新加载。
- 从用户将运行的相同运行时布局进行发布打包的冒烟测试。
Read Next
后续阅读
| Task | Load |
|---|---|
| Design a catalog or loading plugin | |
| Replace scattered asset paths | |
| Diagnose missing assets in packaged builds | |
| 任务 | 加载内容 |
|---|---|
| 设计目录或加载插件 | |
| 替换分散的资源路径 | |
| 诊断打包构建中的缺失资源 | |
Source Notes
来源说明
Guidance is transformed and paraphrased from Herbert Wolverson,
Advanced Hands-On Rust, especially Chapter 6 on game assets and the recurring
release-readiness checks across the book. Examples are original skeletons.
指导内容改编自Herbert Wolverson所著的《Advanced Hands-On Rust》,尤其是第6章关于游戏资源的内容,以及书中反复提及的发布就绪性检查。示例为原创框架。