---
title: "textureNamed(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sktextureatlas/texturenamed(_:)"
---

# textureNamed(_:)

Creates a texture from data stored in the texture atlas.

## Declaration

```swift
func textureNamed(_ name: String) -> SKTexture
```

## Parameters

- `name`: The name of a texture stored in the atlas object.

## Mentioned in

About Texture Atlases Maximizing Node Drawing Performance

## Return Value

Return Value The SpriteKit texture associated with the name. If the specified image does not exist in the atlas object, SpriteKit returns a placeholder texture image.
