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`
This commit is contained in:
Andrew 2024-02-18 02:52:32 -05:00 committed by GitHub
parent eef7dbefe8
commit 961d49f906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ struct ComponentA {
// trait comes into play. `FromWorld` gives you access to your App's current ECS `Resources` // trait comes into play. `FromWorld` gives you access to your App's current ECS `Resources`
// when you construct your component. // when you construct your component.
#[derive(Component, Reflect)] #[derive(Component, Reflect)]
#[reflect(Component, FromWorld)] #[reflect(Component)]
struct ComponentB { struct ComponentB {
pub value: String, pub value: String,
#[reflect(skip_serializing)] #[reflect(skip_serializing)]