Open
Description
openedon Sep 29, 2020
The code that loads a PNG file into a Texture seems to be tightly coupled with the AssetServer's system for loading from the filesystem. It would be good to be able to use include_bytes! to bundle the file content but still take advantage of Bevy's support for loading assets of various types. It would be sufficient to add a method such as:
fn read_asset<P: AsRef<Path>, R: Read>(path: P, reader: R) -> HandleId { ... }or even:
fn load_in_memory_asset<P: AsRef<Path>>(path: P, data: &[u8]) -> HandleId { ... }Metadata
Assignees
Labels
Type
Projects
Status
Wishlist
Activity