Skip to content

Commit

Permalink
Merge branch 'bevyengine:main' into winit-update
Browse files Browse the repository at this point in the history
  • Loading branch information
gcoakes committed May 17, 2021
2 parents 31c87a9 + e3435e5 commit 7415f1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/scene/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ struct ComponentA {
struct ComponentB {
pub value: String,
#[reflect(ignore)]
pub time_since_startup: Duration,
pub _time_since_startup: Duration,
}

impl FromWorld for ComponentB {
fn from_world(world: &mut World) -> Self {
let time = world.get_resource::<Time>().unwrap();
ComponentB {
time_since_startup: time.time_since_startup(),
_time_since_startup: time.time_since_startup(),
value: "Default Value".to_string(),
}
}
Expand Down

0 comments on commit 7415f1c

Please sign in to comment.