We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f4a9d commit e3435e5Copy full SHA for e3435e5
examples/scene/scene.rs
@@ -35,14 +35,14 @@ struct ComponentA {
35
struct ComponentB {
36
pub value: String,
37
#[reflect(ignore)]
38
- pub time_since_startup: Duration,
+ pub _time_since_startup: Duration,
39
}
40
41
impl FromWorld for ComponentB {
42
fn from_world(world: &mut World) -> Self {
43
let time = world.get_resource::<Time>().unwrap();
44
ComponentB {
45
- time_since_startup: time.time_since_startup(),
+ _time_since_startup: time.time_since_startup(),
46
value: "Default Value".to_string(),
47
48
0 commit comments