HSKActionGroup

public class HSKActionGroup : HSKAction, HSKTimeableParent, HSKTimeableChild

An action that organizes playback of other actions.

Grouped actions are contained in HSKActionGroup.actions, and the group will end when all contained actions have completed running a number of times defined by HSKActionGroup.repeatCount.

Calling HSKAction.stop() on an HSKActionGroup with stop any running child actions.

Note that actions can only be in one group at a time, so adding actions to a group will remove it from any group it was previously in.

Groups can be nested, and since repeats occur after the child actions complete, a child action’s delegate might get multiple calls to HSKActionDelegate.actionDidEnd(:finished:) for a single run of HSKActionGroup

  • The number of full runthroughs of all children actions before completing.

    Declaration

    Swift

    public var repeatCount: UInt
  • An array of actions to trigger when the group is run.

    Declaration

    Swift

    public private(set) var actions: [HSKAction]
  • Declaration

    Swift

    public override func stop()