SKShapeNode.FromPath 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.
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