Skip to main content

find_root_with_target

Function find_root_with_target 

Source
fn find_root_with_target(
    curr_entity: Entity,
    target: &Query<'_, '_, (Entity, &Target), With<SignalListItem>>,
    children: &Query<'_, '_, &ChildOf>,
) -> Option<(Entity, Entity)>
Expand description

Find parent with Target component and returns the target entity along with the target signal entity.