1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use ;
use WebAssetIo;
/// Add this plugin to bevy to support loading http and https urls.
///
/// # Example
///
/// ```
/// # use bevy::prelude::*;
/// let mut app = App::build();
/// app.add_plugins_with(DefaultPlugins, |group| {
/// // The web asset plugin must be inserted in-between the
/// // `CorePlugin' and `AssetPlugin`. It needs to be after the
/// // CorePlugin, so that the IO task pool has already been constructed.
/// // And it must be before the `AssetPlugin` so that the asset plugin
/// // doesn't create another instance of an assert server. In general,
/// // the AssetPlugin should still run so that other aspects of the
/// // asset system are initialized correctly.
/// group.add_before::<bevy::asset::AssetPlugin, _>(bevy_web_asset::WebAssetPlugin)
/// });
/// ```
///});
;