📜  从场景中删除孩子 swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.104000             🧑  作者: Mango

代码示例1
if let child = self.childNode(withName: "object") as? SKSpriteNode {
    child.removeFromParent()
}