Instance Method

repeat(count:)

Repeats an animation the specified number of times.

Declaration

func `repeat`(count: Int) -> AnimationResource

Parameters

count

The number of repetitions.

Return Value

A new animation resource that you play on an entity by calling the entity’s playAnimation(_:transitionDuration:startsPaused:) method.

See Also

Looping an Animation

func `repeat`(duration: TimeInterval) -> AnimationResource

Repeats an animation for the specified amount of time.