SKNode.ObstaclesFromSpriteTextures(SKNode[], Single) 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.
Creates a new GKPolygonObstacle by converting the Texture of each SKNode object in 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[]
Parameters
- sprites
- SKNode[]
- accuracy
- Single
Returns
- Attributes