Instance Method

setScale(_:)

Sets the xScale and yScale properties of the node.

Declaration

func setScale(_ scale: CGFloat)

Parameters

scale

The new value to use for the node’s xScale and yScale properties.

See Also

Scaling and Rotating

var zRotation: CGFloat

The Euler rotation about the z axis (in radians).

var xScale: CGFloat

A scaling factor that multiplies the width of a node and its children.

var yScale: CGFloat

A scaling factor that multiplies the height of a node and its children.

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