SKNode.RunAction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
RunAction(SKAction, String) |
Adds an action to the node, accessible with the specified |
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