Freigeben über


SKAction.FollowPath Methode

Definition

Überlädt

FollowPath(CGPath, Boolean, Boolean, nfloat)

Erstellt eine Aktion, die das -Objekt, auf dem SKNode es ausgeführt wird, mit dem angegebenen Offset, der angegebenen Ausrichtung und der angegebenen Geschwindigkeit über das path-Objekt verschiebt.

FollowPath(CGPath, Boolean, Boolean, Double)

Erstellt eine Aktion, die den SKNode bewegt, für den es ausgeführt wird, mit dem pathangegebenen Offset und der angegebenen Ausrichtung, und dauert sec Sekunden.

FollowPath(CGPath, nfloat)

Erstellt eine Aktion, die das SKNode -Objekt verschiebt, auf dem es ausgeführt wird, über , patham angegebenen speed.

FollowPath(CGPath, Double)

Erstellt eine Aktion, die die , auf der SKNode sie ausgeführt wird, in pathSekunden verschiebt sec .

FollowPath(CGPath, Boolean, Boolean, nfloat)

Erstellt eine Aktion, die das -Objekt, auf dem SKNode es ausgeführt wird, mit dem angegebenen Offset, der angegebenen Ausrichtung und der angegebenen Geschwindigkeit über das path-Objekt verschiebt.

[Foundation.Export("followPath:asOffset:orientToPath:speed:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction FollowPath(CoreGraphics.CGPath path, bool offset, bool orient, nfloat speed);
static member FollowPath : CoreGraphics.CGPath * bool * bool * nfloat -> SpriteKit.SKAction

Parameter

path
CGPath
offset
Boolean
orient
Boolean
speed
nfloat

Gibt zurück

Attribute

Gilt für:

FollowPath(CGPath, Boolean, Boolean, Double)

Erstellt eine Aktion, die den SKNode bewegt, für den es ausgeführt wird, mit dem pathangegebenen Offset und der angegebenen Ausrichtung, und dauert sec Sekunden.

[Foundation.Export("followPath:asOffset:orientToPath:duration:")]
public static SpriteKit.SKAction FollowPath(CoreGraphics.CGPath path, bool offset, bool orient, double sec);
static member FollowPath : CoreGraphics.CGPath * bool * bool * double -> SpriteKit.SKAction

Parameter

path
CGPath
offset
Boolean
orient
Boolean
sec
Double

Gibt zurück

Attribute

Gilt für:

FollowPath(CGPath, nfloat)

Erstellt eine Aktion, die das SKNode -Objekt verschiebt, auf dem es ausgeführt wird, über , patham angegebenen speed.

[Foundation.Export("followPath:speed:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction FollowPath(CoreGraphics.CGPath path, nfloat speed);
static member FollowPath : CoreGraphics.CGPath * nfloat -> SpriteKit.SKAction

Parameter

path
CGPath
speed
nfloat

Gibt zurück

Attribute

Gilt für:

FollowPath(CGPath, Double)

Erstellt eine Aktion, die die , auf der SKNode sie ausgeführt wird, in pathSekunden verschiebt sec .

[Foundation.Export("followPath:duration:")]
public static SpriteKit.SKAction FollowPath(CoreGraphics.CGPath path, double sec);
static member FollowPath : CoreGraphics.CGPath * double -> SpriteKit.SKAction

Parameter

path
CGPath
sec
Double

Gibt zurück

Attribute

Gilt für: