File tree Expand file tree Collapse file tree
_release-content/migration-guides Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments