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::{
13
13
use crate :: { prelude:: ScriptError , script:: ScriptId } ;
14
14
15
15
/// Represents a script loaded into memory as an asset
16
- #[ derive( Asset , TypePath ) ]
16
+ #[ derive( Asset , TypePath , Clone ) ]
17
17
pub struct ScriptAsset {
18
18
pub content : Box < [ u8 ] > ,
19
19
/// 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};
8
8
9
9
pub type ScriptId = Cow < ' static , str > ;
10
10
11
- #[ derive( bevy:: ecs:: component:: Component , Reflect ) ]
11
+ #[ derive( bevy:: ecs:: component:: Component , Reflect , Clone ) ]
12
12
pub struct ScriptComponent ( pub Vec < ScriptId > ) ;
13
13
14
14
impl Deref for ScriptComponent {
You can’t perform that action at this time.
0 commit comments