bevy/examples/asset
Duncan 176223b406
Fix embedded asset path manipulation (#10383)
# Objective

Fixes #10377

## Solution

Use `Path::strip_prefix` instead of `str::split`. Avoid any explicit "/"
characters in path manipulation.

---

## Changelog

- Added: example of embedded asset loading
- Added: support embedded assets in external crates
- Fixed: resolution of embedded assets
- Fixed: unexpected runtime panic during asset path resolution

## Migration Guide

No API changes.

---------

Co-authored-by: Shane Celis <shane.celis@gmail.com>
2024-02-02 14:49:05 +00:00
..
processing AssetSaver and AssetTransformer split (#11260) 2024-01-26 20:20:58 +00:00
asset_decompression.rs Added Method to Allow Pipelined Asset Loading (#10565) 2023-11-16 17:47:31 +00:00
asset_loading.rs Restore brightness in the remaining three examples after exposure PR (#11389) 2024-01-17 17:10:21 +00:00
bevy_pixel_light.png Fix embedded asset path manipulation (#10383) 2024-02-02 14:49:05 +00:00
custom_asset.rs Added Support for Extension-less Assets (#10153) 2024-01-31 14:58:08 +00:00
custom_asset_reader.rs fix example custom_asset_reader on wasm (#10574) 2023-11-16 01:50:13 +00:00
embedded_asset.rs Fix embedded asset path manipulation (#10383) 2024-02-02 14:49:05 +00:00
hot_asset_reloading.rs Restore brightness in the remaining three examples after exposure PR (#11389) 2024-01-17 17:10:21 +00:00