共用方式為


SKConstraint.CreateDistance 方法

定義

多載

CreateDistance(SKRange, CGPoint)

建立條件約束,將節點保留在 的指定範圍內 point

CreateDistance(SKRange, SKNode)

建立條件約束,將節點保留在指定的範圍內 node

CreateDistance(SKRange, CGPoint, SKNode)

CreateDistance(SKRange, CGPoint)

建立條件約束,將節點保留在 的指定範圍內 point

[Foundation.Export("distance:toPoint:")]
public static SpriteKit.SKConstraint CreateDistance (SpriteKit.SKRange range, CoreGraphics.CGPoint point);
static member CreateDistance : SpriteKit.SKRange * CoreGraphics.CGPoint -> SpriteKit.SKConstraint

參數

range
SKRange
point
CGPoint

傳回

屬性

適用於

CreateDistance(SKRange, SKNode)

建立條件約束,將節點保留在指定的範圍內 node

[Foundation.Export("distance:toNode:")]
public static SpriteKit.SKConstraint CreateDistance (SpriteKit.SKRange range, SpriteKit.SKNode node);
static member CreateDistance : SpriteKit.SKRange * SpriteKit.SKNode -> SpriteKit.SKConstraint

參數

range
SKRange
node
SKNode

傳回

屬性

適用於

CreateDistance(SKRange, CGPoint, SKNode)

[Foundation.Export("distance:toPoint:inNode:")]
public static SpriteKit.SKConstraint CreateDistance (SpriteKit.SKRange range, CoreGraphics.CGPoint point, SpriteKit.SKNode node);
static member CreateDistance : SpriteKit.SKRange * CoreGraphics.CGPoint * SpriteKit.SKNode -> SpriteKit.SKConstraint

參數

range
SKRange
point
CGPoint
node
SKNode

傳回

屬性

適用於