---
title: "init(texture:size:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/skspritenode/init(texture:size:)"
---

# init(texture:size:)

Initializes a textured sprite using an existing texture object but with a specified size.

## Declaration

```swift
convenience init(texture: SKTexture?, size: CGSize)
```

## Parameters

- `texture`: A SpriteKit texture.
- `size`: The size of the sprite in points.

## Return Value

Return Value A newly initialized sprite object.

## Discussion

Discussion The sprite is initialized using the texture, but the texture’s dimensions are not used. Instead, the size passed into the constructor method is used.

## See Also

### Creating a Sprite from a Texture

- [init(texture:)](spritekit/skspritenode/init(texture:).md)
- [init(texture:color:size:)](spritekit/skspritenode/init(texture:color:size:).md)
- [init(texture:normalMap:)](spritekit/skspritenode/init(texture:normalmap:).md)
- [texture](spritekit/skspritenode/texture.md)
