Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add to_bits and from_bits functions to
AssetIndex
(bevyengine#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>
- Loading branch information