Examples needed for asset meta files #10662
miketwenty1
started this conversation in
General
Replies: 2 comments
-
Yep, I definitely think we should have these! Assets in general need more examples, both of learning and validation. |
Beta Was this translation helpful? Give feedback.
0 replies
-
note: #10623 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
With the release of Bevy 0.12, there's a notable change in how assets are handled: the engine now actively searches for metafiles when loading assets. This has important implications, especially when hosting a Bevy application on a web server. To ensure smooth functionality, it's crucial that your server is configured to return a 404 error when Bevy automatically searches for these metafiles. If your server erroneously responds with a 200 status code (indicating success) in the absence of actual metafiles, Bevy will assume that a corresponding metadata file exists for the asset, leading to loading issues.
Given that this behavior is now the default in Bevy, I propose that we provide some exemplary metafiles. This would greatly assist developers in understanding and implementing the correct structure and content for these files. Ideally, these examples should cover a diverse range of assets, such as an image, a sound file, and a font.
In my search for such examples, I came across several .meta files in the asset processing examples:
However, I'm uncertain if these files are representative of what we need for creating metafiles for images, sounds, and fonts.
Furthermore, it's not entirely clear whether these metafiles are typically created manually or via a tool. The lack of clarity can lead to confusion for users and debuggers, especially when confronted with a multitude of 404 errors in their web browser's console log while debugging. I believe this warrants the need for examples in
examples/
handling metafiles effectively in Bevy applications.If I'm off base here please let me know. I welcome any insights or suggestions on this matter as I'm very unfamiliar with meta files.
Beta Was this translation helpful? Give feedback.
All reactions