Skip to content

Commit 3600f0a

Browse files
committed
Write a migration guide.
1 parent da760d1 commit 3600f0a

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Advanced AssetServer load variants are now expose through a builder pattern.
3+
pull_requests: []
4+
---
5+
6+
In previous versions of Bevy, there were many different ways to load an asset:
7+
8+
- `AssetServer::load`
9+
- `AssetServer::load_acquire`
10+
- `AssetServer::load_untyped`
11+
- `AssetServer::load_acquire_override_with_settings`
12+
- etc.
13+
14+
All these variants have been simplified to only two variants:
15+
16+
1. `AssetServer::load()`: This is just a convenience and just calls the load builder internally.
17+
2. `AssetServer::load_builder()`: allows for constructing more complex loads like untyped loads,
18+
loads including guards, loads with settings, etc.
19+
20+
Every load variant above can be reimplemented using `load_builder`, and each one of these methods
21+
has deprecation messages on them explaining their new equivalent.

0 commit comments

Comments
 (0)