如何删除节点?

How do you remove a node?

我可以举个例子吗? 要添加节点,我这样做:

let thisNode = thisScene.rootNode.childNodeWithName("someGraphic", recursively: true)
scene.rootNode.addChildNode(thisNode!)

现在我该如何删除它?我来来回回看了 this,还是做不到。

函数的应用就像在视图或图层上一样:

thisNode.removeFromParentNode()