Creates an action that changes the width and height of a sprite to a new absolute value.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The new width of the sprite.
The new height of the sprite.
The duration of the animation.
This action can only be executed by an
SKSpriteNode object. When the action executes, the sprite’s
size property animates to its new value.
This action is not reversible; the reverse of this action has the same duration but does not change anything.
Animating a Node's Texture
Creates an action that changes a sprite’s texture, possibly resizing the sprite.