mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 14:32:06 +00:00
Add note on ordering to AssetServerSettings docs. (#5706)
# Objective It's not obvious that the `AssetServerSettings` resource must be added before the `AssetPlugin`. ## Solution Add a doc comment to this effect.
This commit is contained in:
parent
d346274e32
commit
9dd5b5354f
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ pub enum AssetStage {
|
|||
#[derive(Default)]
|
||||
pub struct AssetPlugin;
|
||||
|
||||
/// [`AssetServer`] settings.
|
||||
/// Settings for the [`AssetServer`].
|
||||
///
|
||||
/// This resource must be added before the [`AssetPlugin`] or `DefaultPlugins` to take effect.
|
||||
#[derive(Resource)]
|
||||
pub struct AssetServerSettings {
|
||||
/// The base folder where assets are loaded from, relative to the executable.
|
||||
|
|
Loading…
Reference in a new issue