Feature: Upstream bevy_web_asset
, allowing assets loaded via http
#16307
Labels
A-Assets
Load files from disk to use for things like images, models, and sounds
C-Feature
A new feature, making something new possible
D-Modest
A "normal" level of difficulty; suitable for simple features or challenging fixes
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Contentious
There are nontrivial implications that should be thought through
What problem does this solve or what need does it fill?
Being able to load assets from
http
andhttps
urls.This is particulary relevant for examples, files that are too big for source control are often stored in external zip files requiring awkward download & extract workflows for people just getting started with a crate.
It also makes both wasm and native binaries more portable, as the additional 'assets' folder isnt required to always be placed alongside them, a big win for game jams etc.
What solution would you like?
For url assets to 'just work', meaning if a path starts with
http/https
the asset will be loaded via the http client:What alternative(s) have you considered?
Keep this as a third party crate
Pros:
Cons:
Additional context
Considerations
bevy_remote
, unless it is missing some critical feature.bevy_asset
it should be behind a feature flag, we will need to decide whether this is to be included by default, in my opinion it should be.bevy_web_asset
is a tiny crate, with <250 lines of code. I guess the most work required here will be a caching solution.The text was updated successfully, but these errors were encountered: