편집

다음을 통해 공유


SKSpriteNode.Create Method

Definition

Overloads

Create(String, Boolean)

Creates a new sprite node with the named image, and optionally generates a normal map.

Create(SKTexture, SKTexture)

Creates a new sprite node with the specified texture and normal map.

Create(String, Boolean)

Creates a new sprite node with the named image, and optionally generates a normal map.

[Foundation.Export("spriteNodeWithImageNamed:normalMapped:")]
[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.SKSpriteNode Create (string imageName, bool generateNormalMap);
static member Create : string * bool -> SpriteKit.SKSpriteNode

Parameters

imageName
String
generateNormalMap
Boolean

Returns

Attributes

Applies to

Create(SKTexture, SKTexture)

Creates a new sprite node with the specified texture and normal map.

[Foundation.Export("spriteNodeWithTexture:normalMap:")]
[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.SKSpriteNode Create (SpriteKit.SKTexture texture, SpriteKit.SKTexture normalMap);
static member Create : SpriteKit.SKTexture * SpriteKit.SKTexture -> SpriteKit.SKSpriteNode

Parameters

texture
SKTexture

To be added.

This parameter can be null.

normalMap
SKTexture

To be added.

This parameter can be null.

Returns

Attributes

Applies to