mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 13:13:49 +00:00
7132404b38
# Objective I encountered a problem where I had a plugin `FooPlugin` which did ```rust impl Plugin for FooPlugin { fn build(&self, app: &mut App) { app .register_asset_source(...); // more stuff after } } ``` And when I tried using it, e.g. ```rust asset_server.load("foo://data/asset.custom"); ``` I got an error that `foo` was not recognized as a source. I found that this is because asset sources must be registered _before_ `AssetPlugin` is added, and I had `FooPlugin` _after_. ## Solution Add clarifying note about having to register sources before `AssetPlugin` is added. Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com> Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com> |
||
---|---|---|
.. | ||
io | ||
processor | ||
server | ||
assets.rs | ||
event.rs | ||
folder.rs | ||
handle.rs | ||
id.rs | ||
lib.rs | ||
loader.rs | ||
meta.rs | ||
path.rs | ||
reflect.rs | ||
saver.rs |