SKShapeNode.FromEllipse 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
返回
- 属性