rust-bevy-asset-pipeline

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Rust 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

核心工作流程

  1. Inventory images, atlases, fonts, sounds, music, and data files.
  2. Create a typed catalog resource that owns paths and loaded handles.
  3. Validate paths before gameplay systems depend on the assets.
  4. Load assets in a dedicated loading state or plugin.
  5. Pass handles through resources/components; avoid reloading from gameplay systems.
  6. Smoke test release packaging from the same runtime layout users will run.
  1. 盘点图片、图集、字体、音效、音乐和数据文件。
  2. 创建一个类型化的目录资源,用于管理路径和已加载的句柄。
  3. 在游戏玩法系统依赖资源之前验证路径。
  4. 在专门的加载状态或插件中加载资源。
  5. 通过资源/组件传递句柄;避免从游戏玩法系统中重新加载。
  6. 从用户将运行的相同运行时布局进行发布打包的冒烟测试。

Read Next

后续阅读

TaskLoad
Design a catalog or loading plugin
guidelines.md
,
references/asset-pipeline-patterns.md
Replace scattered asset paths
workflows/build-asset-pipeline.md
Diagnose missing assets in packaged builds
guidelines.md
,
workflows/build-asset-pipeline.md
任务加载内容
设计目录或加载插件
guidelines.md
,
references/asset-pipeline-patterns.md
替换分散的资源路径
workflows/build-asset-pipeline.md
诊断打包构建中的缺失资源
guidelines.md
,
workflows/build-asset-pipeline.md

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章关于游戏资源的内容,以及书中反复提及的发布就绪性检查。示例为原创框架。