pub fn add_entity_spawn_callback(
        &mut self,
        callback: impl FnMut(&mut EntityBuilder, &EntityInit) + 'static,
    ) {
        self.entity_spawn_callbacks.push(Box::new(callback));
    }
/// Adds a new entity spawn callback, invoked
/// before an entity is created.
///
/// This allows you to add components to entities
/// before they are built.
Adds a new entity spawn callback, invoked
before an entity is created.

This allows you to add components to entities
before they are built.
Adds a new entity spawn callback invoked before an entity is created . This allows you to add components to entities before they are built .
pub fn add_entity_spawn_callback(
        &mut self,
        callback: impl FnMut(&mut EntityBuilder, &EntityInit) + 'static,
    ) {
        self.entity_spawn_callbacks.push(Box::new(callback));
    }
pub fn add_entity_spawn_callback ( & mut self , callback : impl FnMut ( & mut EntityBuilder , & EntityInit ) + ' static , ) { self . entity_spawn_callbacks . push ( Box :: new ( callback ) ) ; }
Adds a new entity spawn callback, invoked
before an entity is created.
Adds a new entity spawn callback invoked before an entity is created .
&mut self
callback
impl FnMut(&mut EntityBuilder, &EntityInit) + 'static
&mut self
callback
impl FnMut(&mut EntityBuilder, &EntityInit) + 'static