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

# spriteNodeWithImageNamed:

Initializes a textured sprite using an image file.

```
+ (instancetype) spriteNodeWithImageNamed:(NSString *) name;
```

## Parameters

`name`

The name of an image file stored in the app bundle.

## Return Value

A newly initialized sprite object.

---

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)