Contents

anchorPoint

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

Declaration

var anchorPoint: CGPoint { get set }

Mentioned in

Discussion

You specify the value for this property in the unit coordinate space. The default value is (0.5,0.5), which means that the sprite is centered on its position.

See Also

Setting a Sprite’s Size and Position