Creates an action that removes the node from its parent.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
class func removeFromParent() -> SKAction
Return Value
A new action object.
Discussion
When the action executes, the node is immediately removed from its parent.
This action is not reversible; the reverse of this action is the same action.