Skip to content

Commit

Permalink
Expose access to SubApps within App
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeLakers2 committed Dec 24, 2024
1 parent ff57e80 commit 905a3dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/bevy_app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,16 @@ impl App {
&mut self.sub_apps.main
}

/// Returns a reference to the [`SubApps`] collection.
pub fn sub_apps(&self) -> &SubApps {
&self.sub_apps
}

/// Returns a mutable reference to the [`SubApps`] collection.
pub fn sub_apps_mut(&mut self) -> &mut SubApps {
&mut self.sub_apps
}

/// Returns a reference to the [`SubApp`] with the given label.
///
/// # Panics
Expand Down

0 comments on commit 905a3dc

Please sign in to comment.