Skip to main content

hidden_entities

Function hidden_entities 

Source
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 each parents chain upward, memoising the answer per entity.