bevy/crates/bevy_asset/src
Zachary Harrold dac4a5bbb4
Depreciate LoadAndSave Asset Processor (#15090)
# 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>`
2024-09-09 16:01:14 +00:00
..
io Revert accidentally added asset docs (#15054) 2024-09-05 14:24:24 +00:00
processor Depreciate LoadAndSave Asset Processor (#15090) 2024-09-09 16:01:14 +00:00
server Revert accidentally added asset docs (#15054) 2024-09-05 14:24:24 +00:00
assets.rs Fix rust beta lints (#14537) 2024-07-31 01:27:26 +00:00
direct_access_ext.rs Add methods to directly load assets from World (#12023) 2024-02-27 00:28:26 +00:00
event.rs Added AssetLoadFailedEvent, UntypedAssetLoadFailedEvent (#11369) 2024-01-17 21:12:00 +00:00
folder.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
handle.rs reflect: implement the unique reflect rfc (#7207) 2024-08-12 17:01:41 +00:00
id.rs Allow phase items not associated with meshes to be binned. (#14029) 2024-06-27 16:13:03 +00:00
lib.rs Add basic docs to AssetMode (#15057) 2024-09-09 15:33:29 +00:00
loader_builders.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
loader.rs Revert accidentally added asset docs (#15054) 2024-09-05 14:24:24 +00:00
meta.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00
path.rs Replace bevy_utils::CowArc with atomicow (#14977) 2024-08-30 00:43:07 +00:00
reflect.rs reflect: implement the unique reflect rfc (#7207) 2024-08-12 17:01:41 +00:00
saver.rs Revert accidentally added asset docs (#15054) 2024-09-05 14:24:24 +00:00
transformer.rs Depreciate LoadAndSave Asset Processor (#15090) 2024-09-09 16:01:14 +00:00