From 69011b7e268433e4a1b7eeefc595f93ec3da51a7 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Mon, 14 Nov 2022 23:08:26 +0000 Subject: [PATCH] Derive clone and debug for `AssetPlugin` (#6583) # Objective - Derive Clone and Debug for `AssetPlugin` - Make it possible to log asset server settings - And get an owned instance if wrapping `AssetPlugin` in another plugin. See: https://github.com/johanhelsing/bevy_web_asset/blob/129224ef72a609ce54088f01183f6962fed8780e/src/web_asset_plugin.rs#L45 --- crates/bevy_asset/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs index 5c3e3690dd..d0535fa6d2 100644 --- a/crates/bevy_asset/src/lib.rs +++ b/crates/bevy_asset/src/lib.rs @@ -62,6 +62,7 @@ pub enum AssetStage { /// /// Assets are typed collections with change tracking, which are added as App Resources. Examples of /// assets: textures, sounds, 3d models, maps, scenes +#[derive(Debug, Clone)] pub struct AssetPlugin { /// The base folder where assets are loaded from, relative to the executable. pub asset_folder: String,