共用方式為


SKAction.AnimateWithTextures 方法

定義

多載

AnimateWithTextures(SKTexture[], Double)

建立動作,依序取代 Texture SKSpriteNode 的 屬性,該動作會以 包含的每個紋理 textures 執行 sec

AnimateWithTextures(SKTexture[], Double, Boolean, Boolean)

建立動作,以循序取代 Texture SKSpriteNode 的 屬性,此動作會以 包含 textures 的每個紋理執行,每 sec 秒重新調整 Sprite 的大小,以符合目前的紋理大小,如果 resize 設定為 true。

AnimateWithTextures(SKTexture[], Double)

建立動作,依序取代 Texture SKSpriteNode 的 屬性,該動作會以 包含的每個紋理 textures 執行 sec

[Foundation.Export("animateWithTextures:timePerFrame:")]
public static SpriteKit.SKAction AnimateWithTextures (SpriteKit.SKTexture[] textures, double sec);
static member AnimateWithTextures : SpriteKit.SKTexture[] * double -> SpriteKit.SKAction

參數

textures
SKTexture[]
sec
Double

傳回

屬性

適用於

AnimateWithTextures(SKTexture[], Double, Boolean, Boolean)

建立動作,以循序取代 Texture SKSpriteNode 的 屬性,此動作會以 包含 textures 的每個紋理執行,每 sec 秒重新調整 Sprite 的大小,以符合目前的紋理大小,如果 resize 設定為 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

參數

textures
SKTexture[]
sec
Double
resize
Boolean
restore
Boolean

傳回

屬性

適用於