pub struct Node {
pub uuid: u32,
pub name: String,
pub type_node: NodeDataType,
pub enabled: bool,
pub zsort: f32,
pub transform: Transform,
pub lock_to_root: bool,
pub children: Vec<Node>,
}Expand description
Node in the puppet’s hierarchical tree. Can be visual (Part, Camera) or container (Composite, MeshGroup).
Fields§
§uuid: u32Global unique identifier of the node.
name: StringReadable node name (visible in editor).
type_node: NodeDataTypeSpecific node type and associated data (Part, Camera, etc).
enabled: boolIf false, the node and its children are not rendered.
zsort: f32Z order (depth) in render. Higher values = more in front.
transform: TransformLocal transform (position, rotation, scale).
lock_to_root: boolIf true, the transform is not affected by parent. Useful for UI or screen-fixed elements.
children: Vec<Node>Child nodes (recursive tree structure).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
Blanket Implementations§
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