編集

次の方法で共有


SKNode.RunActionAsync(SKAction) Method

Definition

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

public virtual System.Threading.Tasks.Task RunActionAsync (SpriteKit.SKAction action);
abstract member RunActionAsync : SpriteKit.SKAction -> System.Threading.Tasks.Task
override this.RunActionAsync : SpriteKit.SKAction -> System.Threading.Tasks.Task

Parameters

action
SKAction

The action to add and run.

Returns

A task that represents the asynchronous RunAction operation

Remarks

The RunActionAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to