Instance Method

removeActionForKey:

Removes an action associated with a specific key.

Required.

Declaration

- (void)removeActionForKey:(NSString *)key;

Parameters

key

A string that uniquely identifies a action.

Discussion

If the node is currently running an action that matches the key, SceneKit removes that action from the node, skipping any remaining animation it would perform but keeping any changes already made to the node.

Use this method to cancel actions you scheduled using the runAction:forKey: or runAction:forKey:completionHandler: method.

See Also

Canceling a Node’s Running Actions

- removeAllActions

Ends and removes all actions from the node.

Required.