The texture image SceneKit uses to render each particle.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Texture images help to determine visual effect rendered by the particle system. The
particle property colorizes the image before rendering. You may specify an image using an
NSImage (in macOS) or
UIImage (in iOS) instance, or an
NSURL instance containing the path or URL to an image file.
If the value is
nil (the default), SceneKit renders each particle as a small white square (colorized by the
To specify a sequence of frames for animating each particle, arrange the frames as a grid in a single image, as shown in Figure 1, then use the properties listed in Animating Particle Images to identify frames in the grid and set the speed and style of the animation.
You can also create particles that appear reflective by assigning an array of images to this property. SceneKit treats the six images in the array as a cube map and renders each particle as a solid-colored, reflective sphere. The particle system’s
fresnel property controls each sphere’s reflectivity. For details on cube map textures, see