Contents

opacity

The particle’s opacity (or alpha value).

Declaration

static let opacity: SCNParticleSystem.ParticleProperty

Discussion

This property’s value is a floating-point scalar (an NSNumber object for particle property controllers, or a single float value for particle event or modifier blocks).

This property controls the same alpha value as the color property. Use this property when you want to modify particle opacity without modifying color, or when you want to use opacity as the input for a SCNParticlePropertyController object.

The particle system’s particleColor and particleColorVariation properties determine the initial alpha value for each particle.

See Also

Type Properties