Instance Property

size

The dimensions of the sprite, in points.

Declaration

var size: CGSize { get set }

See Also

Setting a Sprite's Size and Position

Using the Anchor Point to Move a Sprite

Learn how the anchor point affects a sprite's position.

func scale(to: CGSize)

Scales the sprite node to a specified size.

var anchorPoint: CGPoint

Defines the point in the sprite that corresponds to the node’s position.