Skip to content

Commit a5c318b

Browse files
committed
Explain why
1 parent 139d0e7 commit a5c318b

File tree

1 file changed

+2
-1
lines changed
  • crates/bevy_ecs/src/event

1 file changed

+2
-1
lines changed

crates/bevy_ecs/src/event/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ pub trait EntityEvent: Event {
271271
fn event_target(&self) -> Entity;
272272
/// Returns a mutable reference to the [`Entity`] "target" of this [`EntityEvent`]. When triggered, this will run observers that watch for this specific entity.
273273
///
274-
/// Note: In general, this should not be mutated from within an [`Observer`](crate::observer::Observer).
274+
/// Note: In general, this should not be mutated from within an [`Observer`](crate::observer::Observer), as this will not "retarget"
275+
/// the event in any of Bevy's built-in [`Trigger`] implementations.
275276
fn event_target_mut(&mut self) -> &mut Entity;
276277
}
277278

0 commit comments

Comments
 (0)