pub fn hidden_entities(
main: &mut World,
parents: &HashMap<Entity, Entity>,
) -> HashSet<Entity>Expand description
Returns the set of entities hidden by a [Visible(false)] on themselves or any ancestor.
- Used by extract fns to skip subtrees of
<if mode="hide">blocks without despawning. - First pass collects every
Visible(false); second pass walks eachparentschain upward, memoising the answer per entity.