Requested resource bevy_asset::server::AssetServer does not exist in the World
.
#14105
-
I tried to run a minimal bevy app with render plugin inited, but it gives My code: use bevy::prelude::*;
fn main() {
App::new()
.add_plugins((
MinimalPlugins,
bevy::render::RenderPlugin::default(),
))
.run();
} my cargo.toml: [package]
name = "bevy_terminal"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = {version = "0.13.2", default-features = false, features = [
"bevy_render",
]} the error:
Adding bevy assets plugin does not solve the problem. Does any one know why this error msg is shown? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should take a look to a call stack in such cases, if panic occurs while plugin builds, then for solving problem you should add depending plugin before the plugin which doesn't build, if panic during runing schedules, then you can add plugins to the end of list. In this case render plugin forced me also add few more plugins.
My Cargo.toml:
I hope it helps |
Beta Was this translation helpful? Give feedback.
You should take a look to a call stack in such cases, if panic occurs while plugin builds, then for solving problem you should add depending plugin before the plugin which doesn't build, if panic during runing schedules, then you can add plugins to the end of list. In this case render plugin forced me also add few more plugins.
My code:
My Cargo.toml: