Instance Method

runAction:forKey:

Adds an identifiable action to the list of actions executed by the node.

Required.

Declaration

- (void)runAction:(SCNAction *)action forKey:(NSString *)key;

Parameters

action

The action to be performed.

key

A unique key used to identify the action.

Discussion

This method is identical to runAction:, but the action is stored and identified so that you can retrieve or cancel it later. If an action using the same key is already running, SceneKit removes it before adding the new action.

See Also

Running Actions

- runAction:

Adds an action to the list of actions executed by the node.

Required.

- runAction:completionHandler:

Adds an action to the list of actions executed by the node. SceneKit calls the specified block when the action completes.

Required.

- runAction:forKey:completionHandler:

Adds an identifiable action to the list of actions executed by the node. SceneKit calls the specified block when the action completes.

Required.