inputMode
The mode that determines input values for the property controller’s animation.
Declaration
var inputMode: SCNParticleInputMode { get set }Discussion
With the default input mode of SCNParticleInputMode.overLife, the animation timing for each particle is based on the particle’s life span. For example, consider an animation that reduces each particle’s opacity from 1.0 to 0.0. By default, a particle begins with full opacity, and reduces its opacity completely by the end of its life span (regardless of the particle’s position and other properties). Change the input mode to make each particle’s opacity a function of a different measurement, such as distance from a specified point or one of the particle’s other properties. For more details, see SCNParticleInputMode.