pub fn new_node(&mut self) -> Arc<RwLock<Node>> {
        let n = Node::default(Weak::upgrade(&self.self_ref).unwrap());
        self.nodes.push(Arc::clone(&n));
        n
    }
/// Creates a new node and adds it to the scene.
Creates a new node and adds it to the scene.
Creates a new node and adds it to the scene .
pub fn new_node(&mut self) -> Arc<RwLock<Node>> {
        let n = Node::default(Weak::upgrade(&self.self_ref).unwrap());
        self.nodes.push(Arc::clone(&n));
        n
    }
pub fn new_node ( & mut self ) -> Arc < RwLock < Node > > { let n = Node :: default ( Weak :: upgrade ( & self . self_ref ) . unwrap ( ) ) ; self . nodes . push ( Arc :: clone ( & n ) ) ; n }
Creates a new node and adds it to the scene.
Creates a new node and adds it to the scene .
&mut self
&mut self