---
title: anchorPoint
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skspritenode/anchorpoint
---

# anchorPoint

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

## Declaration

```swift
var anchorPoint: CGPoint { get set }
```

## Mentioned in

Animating a Sprite by Changing its Texture Using the Anchor Point to Move a Sprite

## Discussion

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

- [Using the Anchor Point to Move a Sprite](spritekit/using-the-anchor-point-to-move-a-sprite.md)
- [size](spritekit/skspritenode/size.md)
- [scale(to:)](spritekit/skspritenode/scale(to:).md)
