Instance Property

xScale

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

Declaration

var xScale: CGFloat { get set }

Discussion

The xScale property scales the width of the node and all of its descendants. The scale value affects how a node’s frame is calculated, its hit test area, how it is drawn, and other similar characteristics. The default value is 1.0.

See Also

Setting a Node’s Scaling and Rotation

func setScale(CGFloat)

Sets the xScale and yScale properties of the node.

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