Type Method

scaleTo:duration:

Creates an action that uniformly changes the scale factor of a node to an absolute value.

Declaration

+ (SCNAction *)scaleTo:(CGFloat)scale duration:(NSTimeInterval)sec;

Parameters

scale

The new value for all three components of the node’s scale.

sec

The duration, in seconds, of the animation.

Return Value

A new action object.

Discussion

When the action executes, the node’s scale property animates to the new value.

This action is not reversible; the reverse of this action has the same duration but does not change anything.

See Also

Creating Actions That Change a Node’s Scale

+ scaleBy:duration:

Creates an action that uniformly changes the scale factor of a node by a relative value.