Sdílet prostřednictvím


SKNode.RunActionAsync(SKAction) Method

Definition

Asynchronously adds an action to the node that will be processed in the next animation loop.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task RunActionAsync(SpriteKit.SKAction action);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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

Attributes

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