Bevy_Asset High Level Overview #11215
thepackett
started this conversation in
General
Replies: 2 comments 2 replies
-
This is excellent! Are you planning to convert these into a module docs PR? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks a lot for writing this up! I recently complained that the new asset system is not documented very well and this helped me a lot :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Foreword
This is a resource I developed while learning my way through Bevy_Asset. It is a high level overview that skips most the details, but helped me map out how the overall system works. This was written for Bevy 0.12.1.
Bevy_Asset High Level Overview
Definitions:
Asset Loading:
Asset Saving:
Asset Processing:
Bevy_Asset Usage Overview (Assuming a custom implementation is needed for everything)
Type Setup
Using bevy's asset system first involves setting up the types that your Asset needs:
App setup
Secondly, you must set up your App. In this diagram, start from the "App" node in the lower left, and call the necessary methods for your custom asset implementation:
AssetServer Usage
Lastly, to load your custom asset you can use the AssetServer:
Beta Was this translation helpful? Give feedback.
All reactions