Instance Property


The range of randomized initial frames for particle image animation. Animatable.


@property(nonatomic) CGFloat imageSequenceInitialFrameVariation;


Setting a nonzero value for this property randomizes the effect of the imageSequenceInitialFrame property. SceneKit randomly adjusts the initial animation frame for each particle by up to half the imageSequenceInitialFrameVariation value. For example, if the imageSequenceInitialFrame value is 10.0 and the imageSequenceInitialFrameVariation value is 5.0, each particle randomly begins on a frame between frame 7.5 and frame 12.5 of the image sequence animation.

When you use image sequences for particles, SceneKit interpolates between frames of animation, so a fractional value (either for this property or for either endpoint of the range it determines) results in a partial fade between two animation frames.

The default value is 0.0 seconds, specifying no randomization.


See Also

Animating Particle Images


The number of rows for treating the particle image as a grid of animation frames.


The number of columns for treating the particle image as a grid of animation frames.


The index of the first frame in a particle image animation. Animatable.


The rate, in frames per second, of particle image animation. Animatable.


The range, in frames per second, of randomized frame rates for particle image animation. Animatable.


The animation mode for particle image animation.


Options for animating each particle with a sequence of images, used by the imageSequenceAnimationMode property.