scale(to:duration:)
Creates an action that uniformly changes the scale factor of a node to an absolute value.
Declaration
class func scale(to scale: CGFloat, duration sec: TimeInterval) -> SCNActionParameters
- 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.