cocos2d-x3.-Node、scheduler

    xiaoxiao2021-12-14  21

    //创建节点 Node* childNode = Node::create(); //增加新的子节点 addChild(childNode, 0, 123);//第二个参数Z轴绘制顺序,第三个参数为标签。 //通过tag查找子节点 Node*node = node->getChildByTag(123); //通过tag删除子节点,并停止所有该节点上的一切动作 node->removeChildByTag(123, true); //删除childNode节点,病停止所有该子节点上的一切动作 removeChild(childNode, true); //删除node节点的所有子节点,并停止这些子节点上的一切动作 removeAllChildrenWithCleanup(true); //从父节点删除node节点,并停止所有该节点上的一切动作 removeFromParentAndCleanup(true);
    转载请注明原文地址: https://ju.6miu.com/read-969188.html

    最新回复(0)