Skip to content

Commit d3dffb5

Browse files
committed
Add commands() method to ChuildBuilder
1 parent e74f7a7 commit d3dffb5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/bevy_transform/src/hierarchy/child_builder.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ impl<'w, 's, 'a> ChildBuilder<'w, 's, 'a> {
9292
self.commands.add(command);
9393
self
9494
}
95+
96+
/// Returns the underlying [`Commands`].
97+
pub fn commands(&mut self) -> &mut Commands<'w, 's> {
98+
self.commands
99+
}
95100
}
96101

97102
pub trait BuildChildren {

0 commit comments

Comments
 (0)