---
title: "setNormalTexture(_:resize:)"
framework: spritekit
role: symbol
role_heading: Type Method
path: "spritekit/skaction/setnormaltexture(_:resize:)"
---

# setNormalTexture(_:resize:)

Creates an action that changes a sprite’s normal texture, possibly resizing the sprite.

## Declaration

```swift
class func setNormalTexture(_ texture: SKTexture, resize: Bool) -> SKAction
```

## Parameters

- `texture`: The new texture to use on the sprite.
- `resize`: If doc://com.apple.documentation/documentation/Swift/true, the sprite is resized to match the new texture. Otherwise, the size of the sprite is unchanged.

## Return Value

Return Value A new action object.

## Discussion

Discussion This action can only be executed by an SKSpriteNode object. When the action executes, the sprite’s normalTexture property changes immediately to the new texture and the sprite is resized to match.

## See Also

### Animating a Node’s Texture

- [resize(byWidth:height:duration:)](spritekit/skaction/resize(bywidth:height:duration:).md)
- [resize(toHeight:duration:)](spritekit/skaction/resize(toheight:duration:).md)
- [resize(toWidth:duration:)](spritekit/skaction/resize(towidth:duration:).md)
- [resize(toWidth:height:duration:)](spritekit/skaction/resize(towidth:height:duration:).md)
- [setTexture(_:)](spritekit/skaction/settexture(_:).md)
- [setTexture(_:resize:)](spritekit/skaction/settexture(_:resize:).md)
- [animate(with:timePerFrame:)](spritekit/skaction/animate(with:timeperframe:).md)
- [animate(with:timePerFrame:resize:restore:)](spritekit/skaction/animate(with:timeperframe:resize:restore:).md)
- [setNormalTexture(_:)](spritekit/skaction/setnormaltexture(_:).md)
- [animate(withNormalTextures:timePerFrame:)](spritekit/skaction/animate(withnormaltextures:timeperframe:).md)
- [animate(withNormalTextures:timePerFrame:resize:restore:)](spritekit/skaction/animate(withnormaltextures:timeperframe:resize:restore:).md)
- [colorize(with:colorBlendFactor:duration:)](spritekit/skaction/colorize(with:colorblendfactor:duration:).md)
- [colorize(withColorBlendFactor:duration:)](spritekit/skaction/colorize(withcolorblendfactor:duration:).md)
