SKShapeNode.FromPath Method

Definition

Overloads

FromPath(CGPath)

Creates a new shape node from the specified path.

FromPath(CGPath, Boolean)

Creates a new shape node from the specified path, optionally centered in its bounding rectangle.

FromPath(CGPath)

Creates a new shape node from the specified path.

[Foundation.Export("shapeNodeWithPath:")]
[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.SKShapeNode FromPath (CoreGraphics.CGPath path);
static member FromPath : CoreGraphics.CGPath -> SpriteKit.SKShapeNode

Parameters

path
CGPath

Returns

Attributes

Applies to

FromPath(CGPath, Boolean)

Creates a new shape node from the specified path, optionally centered in its bounding rectangle.

[Foundation.Export("shapeNodeWithPath:centered:")]
[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.SKShapeNode FromPath (CoreGraphics.CGPath path, bool centered);
static member FromPath : CoreGraphics.CGPath * bool -> SpriteKit.SKShapeNode

Parameters

path
CGPath
centered
Boolean

Returns

Attributes

Applies to