<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKNode/setScale(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKNode(im)setScale:"
  },
  "title" : "setScale(_:)"
}
-->

# setScale(_:)

Sets the [`xScale`](/documentation/SpriteKit/SKNode/xScale) and [`yScale`](/documentation/SpriteKit/SKNode/yScale) properties of the node.

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

## Parameters

`scale`

The new value to use for the node’s [`xScale`](/documentation/SpriteKit/SKNode/xScale) and [`yScale`](/documentation/SpriteKit/SKNode/yScale) properties.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)