setNormalTexture(_:)
Creates an action that changes a sprite’s normal texture.
Declaration
class func setNormalTexture(_ texture: SKTexture) -> SKActionParameters
- texture:
The new texture to use on the sprite.
Return Value
A new action object.
Discussion
Only an SKSpriteNode object can execute this action. When the action executes, the sprite’s normalTexture property changes immediately to the new texture.
This action is not reversible; the reverse of this action does nothing.
See Also
Animating a Node’s Texture
resize(byWidth:height:duration:)resize(toHeight:duration:)resize(toWidth:duration:)resize(toWidth:height:duration:)setTexture(_:)setTexture(_:resize:)animate(with:timePerFrame:)animate(with:timePerFrame:resize:restore:)setNormalTexture(_:resize:)animate(withNormalTextures:timePerFrame:)animate(withNormalTextures:timePerFrame:resize:restore:)colorize(with:colorBlendFactor:duration:)colorize(withColorBlendFactor:duration:)