File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
crates/bevy_mod_scripting_core/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use bevy::{
1313use crate :: { prelude:: ScriptError , script:: ScriptId } ;
1414
1515/// Represents a script loaded into memory as an asset
16- #[ derive( Asset , TypePath ) ]
16+ #[ derive( Asset , TypePath , Clone ) ]
1717pub struct ScriptAsset {
1818 pub content : Box < [ u8 ] > ,
1919 /// The virtual filesystem path of the asset, used to map to the script Id for asset backed scripts
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use crate::{asset::ScriptAsset, context::ContextId};
88
99pub type ScriptId = Cow < ' static , str > ;
1010
11- #[ derive( bevy:: ecs:: component:: Component , Reflect ) ]
11+ #[ derive( bevy:: ecs:: component:: Component , Reflect , Clone ) ]
1212pub struct ScriptComponent ( pub Vec < ScriptId > ) ;
1313
1414impl Deref for ScriptComponent {
You can’t perform that action at this time.
0 commit comments