Modifica

Condividi tramite


SKNode.RunAction Method

Definition

Overloads

RunAction(SKAction)

Adds an action to the node that will first be processed in the next animation loop.

RunAction(SKAction, Action)

Adds an action to the node that will be processed in the next animation loop, and calls completionHandler after the action completes.

RunAction(SKAction, String)

Adds an action to the node, accessible with the specified key, that will be processed in the next animation loop.

RunAction(SKAction)

Adds an action to the node that will first be processed in the next animation loop.

[Foundation.Export("runAction:")]
public virtual void RunAction (SpriteKit.SKAction action);
abstract member RunAction : SpriteKit.SKAction -> unit
override this.RunAction : SpriteKit.SKAction -> unit

Parameters

action
SKAction

The action to add and run.

Attributes

Applies to

RunAction(SKAction, Action)

Adds an action to the node that will be processed in the next animation loop, and calls completionHandler after the action completes.

[Foundation.Export("runAction:completion:")]
public virtual void RunAction (SpriteKit.SKAction action, Action completionHandler);
abstract member RunAction : SpriteKit.SKAction * Action -> unit
override this.RunAction : SpriteKit.SKAction * Action -> unit

Parameters

action
SKAction

The action to add and run.

completionHandler
Action

A handler to run after the action completes.

Attributes

Applies to

RunAction(SKAction, String)

Adds an action to the node, accessible with the specified key, that will be processed in the next animation loop.

[Foundation.Export("runAction:withKey:")]
public virtual void RunAction (SpriteKit.SKAction action, string key);
abstract member RunAction : SpriteKit.SKAction * string -> unit
override this.RunAction : SpriteKit.SKAction * string -> unit

Parameters

action
SKAction

The action to add and run.

key
String

A key for the action.

Attributes

Applies to