A container for a closure to be executed at a specific time during playback of an animation.


class SCNAnimationEvent : NSObject


Use animation events to add actions to animations, such as playing a sound to coincide with the movement of an animated character, or removing a node from the scene after playing an animation that fades out its visible geometry.

After you create an animation event, you attach it to an animation object using the object’s animationEvents property.


Creating an Animation Event


typealias SCNAnimationEventBlock

Signature for the block called when an animation event triggers.


Inherits From

Conforms To

See Also

Explicit Animation

protocol SCNAnimatable

The common interface for attaching animations to nodes, geometries, materials, and other SceneKit objects.

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