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

Setting a Node’s Scaling and Rotation

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.

var zRotation: CGFloat

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