mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
# 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> |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |