concinnity-core 0.19.2

Runtime vocabulary for the Concinnity engine: GPU layouts, ECS components, registry, CPU kernels
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// src/components/visibility_request.rs

use crate::components::EntityTarget;

/// Runtime-only event requesting that an entity (and its descendants)
/// be hidden or shown without despawning it. SpawnSystem drains these each
/// step, toggling the subtree's Hidden tags and its draw slots' visibility.
/// World authors never declare this type directly.
#[derive(Debug, Clone, Copy)]
pub struct VisibilityRequest {
    /// The entity whose subtree is toggled.
    pub target: EntityTarget,
    /// `true` to show the subtree, `false` to hide it.
    pub visible: bool,
}