···55/// A function used to merge effects with [`EffectMode::Merge`](crate::EffectMode::Merge),
66/// which must be registered in the [registry](EffectMergeRegistry).
77///
88+/// The component the function is registered for is guaranteed to exist on both provided entities.
99+/// Note that the incoming entity exists in a **separate world**.
1010+///
811/// # Example
912/// ```rust
1013/// # use bevy_ecs::prelude::*;
···1316/// struct MyEffect(f32);
1417///
1518/// fn merge_my_effect(mut existing: EntityWorldMut, incoming: EntityRef) {
1919+/// let mut existing = existing.get_mut::<MyEffect>().unwrap();
1620/// let incoming = incoming.get::<MyEffect>().unwrap();
1717-/// existing.get_mut::<MyEffect>().unwrap().0 += incoming.0;
2121+/// existing.0 += incoming.0;
1822/// }
1923/// ```
2024pub type EffectMergeFn = fn(existing: EntityWorldMut, incoming: EntityRef);
···3842/// }
3943///
4044/// fn merge_my_effect(mut existing: EntityWorldMut, incoming: EntityRef) {
4545+/// let mut existing = existing.get_mut::<MyEffect>().unwrap();
4146/// let incoming = incoming.get::<MyEffect>().unwrap();
4242-/// existing.get_mut::<MyEffect>().unwrap().0 += incoming.0;
4747+/// existing.0 += incoming.0;
4348/// }
4449/// ```
4550#[derive(Resource, Default)]