Instance Property

particleColor

The color of newly spawned particles. Animatable.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(nonatomic, retain) UIColor *particleColor;
macOS
@property(nonatomic, retain) NSColor *particleColor;

Discussion

This color tints or shades the texture provided by the particleImage property. You can use this property to implement a range of many possible visual effects using the same artwork. For example, a small, blurry, white circle texture can be tinted yellow or orange to simulate fire, shaded gray or black to simulate smoke, or left alone to simulate falling snow.

The default color is white, causing the particle image to appear without tint or shading.

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

See Also

Specifying Particle Appearance

particleSize

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

particleSizeVariation

The range of randomized particle sizes. 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.