pub fn propagate_layers<Layer: LayerIndex>(
recursive_query: Query<'_, '_, (Option<&Children>, Option<&Layer>)>,
root_query: Query<'_, '_, (Entity, &Layer), Without<Parent>>,
size: Local<'_, usize>,
) -> EntityHashMap<Layer>Expand description
Propagates the Layer of each entity to the InheritedLayer of itself and all of its
descendants.