Type Method

group:

Creates an action that runs a collection of actions in parallel.

Declaration

+ (SCNAction *)group:(NSArray<SCNAction *> *)actions;

Parameters

actions

An array of SCNAction objects.

Return Value

A new group action object.

Discussion

When the action executes, the actions that make up the group all start immediately and run in parallel. The duration of the group action is the longest duration among the collection of actions. If an action in the group has a duration less than the group’s duration, the action completes and then idles until the group completes the remaining actions. This matters most when creating a repeating action that repeats a group.

This action is reversible; it creates a new group action that contains the reverse of each action specified in the group.

See Also

Creating Actions That Combine or Repeat Other Actions

+ sequence:

Creates an action that runs a collection of actions sequentially.

+ repeatAction:count:

Creates an action that repeats another action a specified number of times.

+ repeatActionForever:

Creates an action that repeats another action forever.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software