diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index 4cdc3a2473..70a2f7456d 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -1008,12 +1008,18 @@ impl App { .try_register_required_components_with::(constructor) } - /// Returns a reference to the [`World`]. + /// Returns a reference to the main [`SubApp`]'s [`World`]. This is the same as calling + /// [`app.main().world()`]. + /// + /// [`app.main().world()`]: SubApp::world pub fn world(&self) -> &World { self.main().world() } - /// Returns a mutable reference to the [`World`]. + /// Returns a mutable reference to the main [`SubApp`]'s [`World`]. This is the same as calling + /// [`app.main_mut().world_mut()`]. + /// + /// [`app.main_mut().world_mut()`]: SubApp::world_mut pub fn world_mut(&mut self) -> &mut World { self.main_mut().world_mut() }