Instance Property

inputScale

A factor for multiplying the input value of the controller’s animation.

Declaration

@property(nonatomic) CGFloat inputScale;

Discussion

Use this property and the inputBias property to pre-process input values to the controller’s animation. For example, you use the SCNParticleInputModeOverDistance option to animate a particle’s opacity as a function of its distance from a specified point, a scale specifies the range of distances over which the animation takes effect.

The default value is 1.0, leaving the input value to the animation unchanged. The range of possible values depends on the controller’s animation.

See Also

Managing the Controller’s Animation

animation

The Core Animation object defining the behavior of the property animation.

inputMode

The mode that determines input values for the property controller’s animation.

inputBias

An offset to add to the input value of the controller’s animation.

inputOrigin

A node whose distance to each particle provides input values for the controller’s animation.

inputProperty

A particle property that provides input values for this property controller’s animation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software