다음을 통해 공유


SKNode.ObstaclesFromSpriteTextures(SKNode[], Single) 메서드

정의

에서 각 SKNode 개체의 를 Texture 변환하여 새 GKPolygonObstaclenodes만듭니다.

[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

반환

특성

적용 대상