Instance Property

particleSize

The rendered size, in units of the scene’s world coordinate space, of the particle image. Animatable.

Declaration

@property(nonatomic) CGFloat particleSize;

Discussion

SceneKit uses this value for both the width and height of the particleImage texture at render time. (If you use the stretchFactor property to stretch particles in their direction of motion, the particleSize value determines the width and height before stretching.) You can randomize the sizes of newly spawned particles with the particleSizeVariation property.

The default value is 1.0, specifying that particle images appear one unit high and one unit wide in the scene’s world coordinate space.

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

See Also

Specifying Particle Appearance

particleSizeVariation

The range of randomized particle sizes. Animatable.

particleColor

The color of newly spawned particles. Animatable.

particleColorVariation

The ranges of randomized particle color components. Animatable.

particleImage

The texture image SceneKit uses to render each particle.

fresnelExponent

The reflectivity exponent SceneKit uses when rendering the particle’s image as a cube map. Animatable.

stretchFactor

A multiplier for stretching particle images along their direction of motion. Animatable.