bevy/crates/bevy_asset
nil 3bdeac6a42
Add to_bits and from_bits functions to AssetIndex (#12127)
# Objective

The `AssetIndex` cannot be carried across boundaries that do not allow
explicit rust types.

For context, I ran into this issue while trying to implent an
improvement for bevy_egui which leverages the not-so-new custom loader
API. Passing through a handle directly isn't possible, but instead it
requires stringified URI s. I had to work around the lack of this API s
existance using reflection, which is rather dirty.

## Solution

- Add `to_bits` and `from_bits` functions to `AssetIndex` to allow
moving this type through such boundaries.

---------

Co-authored-by: Rob Parrett <robparrett@gmail.com>
2024-02-26 21:02:26 +00:00
..
macros Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
src Add to_bits and from_bits functions to AssetIndex (#12127) 2024-02-26 21:02:26 +00:00
Cargo.toml Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00