pub struct SceneNode {
pub entity: EntityId,
pub name: String,
pub icon: EntityIcon,
pub children: Vec<SceneNode>,
pub tag_count: usize,
}Expand description
A lightweight description of an entity in the scene tree.
This is a UI-oriented DTO extracted from the ECS world each frame. It does not borrow any ECS data and can be freely shared between threads.
Fields§
§entity: EntityIdThe entity identifier.
name: StringHuman-readable name (Name component, or fallback like “Entity 42”).
icon: EntityIconVisual hint about what kind of entity this is.
children: Vec<SceneNode>Direct children in the scene hierarchy (from the Children component).
tag_count: usizeNumber of tags carried by the entity (Tag component). The scene
tree paints a small tag glyph next to the row when this is non-zero.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SceneNode
impl RefUnwindSafe for SceneNode
impl Send for SceneNode
impl Sync for SceneNode
impl Unpin for SceneNode
impl UnsafeUnpin for SceneNode
impl UnwindSafe for SceneNode
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more