Skip to content

Commit 961d49f

Browse files
authored
scene example: remove unnecessary reflect(FromWorld) (#11938)
# Objective - `#[reflect(FromWorld)]` was added to `ComponentB` somewhere between `v0.12.1` and `v0.13.0`, but it is unnecessary ## Solution - remove the unnecessary `FromWorld`
1 parent eef7dbe commit 961d49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/scene/scene.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct ComponentA {
3434
// trait comes into play. `FromWorld` gives you access to your App's current ECS `Resources`
3535
// when you construct your component.
3636
#[derive(Component, Reflect)]
37-
#[reflect(Component, FromWorld)]
37+
#[reflect(Component)]
3838
struct ComponentB {
3939
pub value: String,
4040
#[reflect(skip_serializing)]

0 commit comments

Comments
 (0)