SKAction.CustomActionWithDuration(Double, SKActionDurationHandler) 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.
A custom action that repeats for some amount of time.
[Foundation.Export("customActionWithDuration:actionBlock:")]
public static SpriteKit.SKAction CustomActionWithDuration (double seconds, SpriteKit.SKActionDurationHandler actionHandler);
static member CustomActionWithDuration : double * SpriteKit.SKActionDurationHandler -> SpriteKit.SKAction
Parameters
- seconds
- Double
- actionHandler
- SKActionDurationHandler
Returns
- Attributes
Remarks
The actionHandler
is called repeatedly until seconds
has passed.
The custom action is not reversible: ReversedAction returns an SKAction whose behavior is the actionHandler
.