次の方法で共有


SKNode.ObstaclesFromSpriteTextures(SKNode[], Single) メソッド

定義

内の各SKNodeオブジェクトの をTexture変換して、新しい GKPolygonObstacle を作成しますnodes

[Foundation.Export("obstaclesFromSpriteTextures:accuracy:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static GameplayKit.GKPolygonObstacle[] ObstaclesFromSpriteTextures (SpriteKit.SKNode[] sprites, float accuracy);
static member ObstaclesFromSpriteTextures : SpriteKit.SKNode[] * single -> GameplayKit.GKPolygonObstacle[]

パラメーター

sprites
SKNode[]
accuracy
Single

戻り値

属性

適用対象