Instance Method

actionForKey:

Returns an action associated with a specific key.

Required.

Declaration

- (SCNAction *)actionForKey:(NSString *)key;

Parameters

key

A string that uniquely identifies a action.

Return Value

The action object matching the specified key, or nil if the node does not have an action identified by the key.

Discussion

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

See Also

Inspecting a Node’s Running Actions

hasActions

A Boolean value that indicates whether the node is currently executing any actions.

Required.

actionKeys

The list of keys for which the node has attached actions.

Required.