on_r_inserted

Function on_r_inserted 

Source
pub fn on_r_inserted<C: Component + Clone + PartialEq, F: QueryFilter + 'static, R: Relationship>(
    event: On<'_, '_, Insert, R>,
    commands: Commands<'_, '_>,
    query: Query<'_, '_, (&R, Has<Inherited<C>>), (Without<Propagate<C>>, F)>,
    relations: Query<'_, '_, &Inherited<C>, Without<PropagateStop<C>>>,
)
Expand description

Add/remove Inherited::<C> when an entity gains or changes its R relationship