Share via


SKShapeNode.FromPath Method

Definition

Overloads

FromPath(CGPath)

[Foundation.Export("shapeNodeWithPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKShapeNode FromPath(CoreGraphics.CGPath path);
[<Foundation.Export("shapeNodeWithPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromPath : CoreGraphics.CGPath -> SpriteKit.SKShapeNode

Parameters

path
CGPath

Returns

Attributes

Applies to

FromPath(CGPath, Boolean)

[Foundation.Export("shapeNodeWithPath:centered:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKShapeNode FromPath(CoreGraphics.CGPath path, bool centered);
[<Foundation.Export("shapeNodeWithPath:centered:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromPath : CoreGraphics.CGPath * bool -> SpriteKit.SKShapeNode

Parameters

path
CGPath
centered
Boolean

Returns

Attributes

Applies to