---
title: "setScale(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sknode/setscale(_:)"
---

# setScale(_:)

Sets the xScale and yScale properties of the node.

## Declaration

```swift
func setScale(_ scale: CGFloat)
```

## Parameters

- `scale`: The new value to use for the node’s doc://com.apple.spritekit/documentation/SpriteKit/SKNode/xScale and doc://com.apple.spritekit/documentation/SpriteKit/SKNode/yScale properties.

## See Also

### Scaling and Rotating

- [zRotation](spritekit/sknode/zrotation.md)
- [xScale](spritekit/sknode/xscale.md)
- [yScale](spritekit/sknode/yscale.md)
