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:
Robin KAY 2022-08-30 02:40:18 +00:00
parent d346274e32
commit 9dd5b5354f

View file

@ -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.