SKShapeNode.FromEllipse 方法

定义

重载

FromEllipse(CGRect)

从指定矩形创建新的椭圆形节点。

FromEllipse(CGSize)

根据大小创建新的椭圆形节点。

FromEllipse(CGRect)

从指定矩形创建新的椭圆形节点。

[Foundation.Export("shapeNodeWithEllipseInRect:")]
[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 FromEllipse (CoreGraphics.CGRect rect);
static member FromEllipse : CoreGraphics.CGRect -> SpriteKit.SKShapeNode

参数

rect
CGRect

返回

属性

适用于

FromEllipse(CGSize)

根据大小创建新的椭圆形节点。

[Foundation.Export("shapeNodeWithEllipseOfSize:")]
[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 FromEllipse (CoreGraphics.CGSize size);
static member FromEllipse : CoreGraphics.CGSize -> SpriteKit.SKShapeNode

参数

size
CGSize

返回

属性

适用于