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
@ -64,7 +64,9 @@ pub enum AssetStage {
|
|||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct AssetPlugin;
|
pub struct AssetPlugin;
|
||||||
|
|
||||||
/// [`AssetServer`] settings.
|
/// Settings for the [`AssetServer`].
|
||||||
|
///
|
||||||
|
/// This resource must be added before the [`AssetPlugin`] or `DefaultPlugins` to take effect.
|
||||||
#[derive(Resource)]
|
#[derive(Resource)]
|
||||||
pub struct AssetServerSettings {
|
pub struct AssetServerSettings {
|
||||||
/// The base folder where assets are loaded from, relative to the executable.
|
/// The base folder where assets are loaded from, relative to the executable.
|
||||||
|
Loading…
Reference in New Issue
Block a user