Type Alias

SCNAnimationEventBlock

Signature for the block called when an animation event triggers.

Declaration

typedef void (^SCNAnimationEventBlock)(id<SCNAnimation> animation, id animatedObject, BOOL playingBackward);

Discussion

The block takes the following parameters:

animation

The animation triggering the animation event.

animatedObject

The Scene Kit object affected by the animation.

playingBackward

YES if the animation is playing in reverse; otherwise, NO.