Skip to content

Commit 41aa146

Browse files
committed
Update the asset_processing example to use the new nested asset loading.
1 parent 86d96ec commit 41aa146

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/asset/processing/asset_processing.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ impl AssetLoader for CoolTextLoader {
153153
.loader()
154154
.immediate()
155155
.load::<Text>(&embedded)
156-
.await?;
156+
.await?
157+
.1;
157158
base_text.push_str(&complete_loaded.get_asset().get().0);
158159
}
159160
for (path, settings_override) in ron.dependencies_with_settings {
@@ -164,7 +165,8 @@ impl AssetLoader for CoolTextLoader {
164165
})
165166
.immediate()
166167
.load::<Text>(&path)
167-
.await?;
168+
.await?
169+
.1;
168170
base_text.push_str(&complete_loaded.get_asset().get().0);
169171
}
170172
Ok(CoolText {

0 commit comments

Comments
 (0)