mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
dac4a5bbb4
# Objective - Fixes #15060 ## Solution - Added `IdentityAssetTransformer<A>` which is an `AssetTransformer` which infallibly returns the input `Asset` unmodified. - Replaced `LoadAndSave` and `LoadAndSaveSettings` with type definitions linking back to `LoadTransformAndSave` and `LoadTransformAndSaveSettings` respectively. - Marked `LoadAndSave` and `LoadAndSaveSettings` as depreciated with a migration guide included, hinting to the user to use the underlying type instead. ## Testing - Ran CI locally --- ## Migration Guide - Replace `LoadAndSave<L, S>` with `LoadTransformAndSave<L, IdentityAssetTransformer<<L as AssetLoader>::Asset>, S>` - Replace `LoadAndSaveSettings<L, S>` with `LoadTransformAndSaveSettings<L, (), S>` |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
README.md |