Skip to content

Commit 69011b7

Browse files
committed
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
1 parent 8f95560 commit 69011b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_asset/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pub enum AssetStage {
6262
///
6363
/// Assets are typed collections with change tracking, which are added as App Resources. Examples of
6464
/// assets: textures, sounds, 3d models, maps, scenes
65+
#[derive(Debug, Clone)]
6566
pub struct AssetPlugin {
6667
/// The base folder where assets are loaded from, relative to the executable.
6768
pub asset_folder: String,

0 commit comments

Comments
 (0)