Type Method

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) -> SCNAction

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

class func scale(by: CGFloat, duration: TimeInterval) -> SCNAction

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

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