SKAction.AnimateWithTextures Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AnimateWithTextures(SKTexture[], Double) |
Creates an action that sequentially replaces Texture property of SKSpriteNode on which it is run with each texture that is contained in |
AnimateWithTextures(SKTexture[], Double, Boolean, Boolean) |
Creates an action that sequentially replaces the Texture property of the SKSpriteNode on which it is run with each texture that is contained in |
AnimateWithTextures(SKTexture[], Double)
Creates an action that sequentially replaces Texture property of SKSpriteNode on which it is run with each texture that is contained in textures
, every sec
seconds.
[Foundation.Export("animateWithTextures:timePerFrame:")]
public static SpriteKit.SKAction AnimateWithTextures (SpriteKit.SKTexture[] textures, double sec);
static member AnimateWithTextures : SpriteKit.SKTexture[] * double -> SpriteKit.SKAction
Parameters
- textures
- SKTexture[]
- sec
- Double
Returns
- Attributes
Applies to
AnimateWithTextures(SKTexture[], Double, Boolean, Boolean)
Creates an action that sequentially replaces the Texture property of the SKSpriteNode on which it is run with each texture that is contained in textures
, every sec
seconds, resizing the sprite to match the current texture size if resize
is set to true.
[Foundation.Export("animateWithTextures:timePerFrame:resize:restore:")]
public static SpriteKit.SKAction AnimateWithTextures (SpriteKit.SKTexture[] textures, double sec, bool resize, bool restore);
static member AnimateWithTextures : SpriteKit.SKTexture[] * double * bool * bool -> SpriteKit.SKAction
Parameters
- textures
- SKTexture[]
- sec
- Double
- resize
- Boolean
- restore
- Boolean
Returns
- Attributes