Modifier

Partager via


SKAction.SetTexture Method

Definition

Overloads

SetTexture(SKTexture, Boolean)

Creates an action that sets and resizes the texture on the node on which it is run.

SetTexture(SKTexture)

Creates an action that sets the texture on the node on which it is run.

SetTexture(SKTexture, Boolean)

Creates an action that sets and resizes the texture on the node on which it is run.

[Foundation.Export("setTexture:resize:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 1, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction SetTexture (SpriteKit.SKTexture texture, bool resize);
static member SetTexture : SpriteKit.SKTexture * bool -> SpriteKit.SKAction

Parameters

texture
SKTexture
resize
Boolean

Returns

Attributes

Applies to

SetTexture(SKTexture)

Creates an action that sets the texture on the node on which it is run.

[Foundation.Export("setTexture:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 1, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction SetTexture (SpriteKit.SKTexture texture);
static member SetTexture : SpriteKit.SKTexture -> SpriteKit.SKAction

Parameters

texture
SKTexture

Returns

Attributes

Applies to