Instance Property

imageSequenceFrameRateVariation

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

Declaration

@property(nonatomic) CGFloat imageSequenceFrameRateVariation;

Discussion

Setting a nonzero value for this property randomizes the effect of the imageSequenceFrameRate property. SceneKit randomly adjusts the animation speed for each particle by up to half the imageSequenceFrameRateVariation value. For example, if the imageSequenceFrameRate value is 10.0 frames per second and the imageSequenceFrameRateVariation value is 10.0 seconds, each particle animates at a random rate between 5.0 and 15.0 frames per second.

The default value is 0.0 frames per second, specifying no randomization.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Animating Particle Images

imageSequenceRowCount

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

imageSequenceColumnCount

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

imageSequenceInitialFrame

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

imageSequenceInitialFrameVariation

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

imageSequenceFrameRate

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

imageSequenceAnimationMode

The animation mode for particle image animation.

SCNParticleImageSequenceAnimationMode

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