Share via


SKSpriteNode.Create Method

Definition

Overloads

Create(String, Boolean)

[Foundation.Export("spriteNodeWithImageNamed:normalMapped:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKSpriteNode Create(string imageName, bool generateNormalMap);
[<Foundation.Export("spriteNodeWithImageNamed:normalMapped:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : string * bool -> SpriteKit.SKSpriteNode

Parameters

imageName
String
generateNormalMap
Boolean

Returns

Attributes

Applies to

Create(SKTexture, SKTexture)

[Foundation.Export("spriteNodeWithTexture:normalMap:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKSpriteNode Create(SpriteKit.SKTexture? texture, SpriteKit.SKTexture? normalMap);
[<Foundation.Export("spriteNodeWithTexture:normalMap:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : SpriteKit.SKTexture * SpriteKit.SKTexture -> SpriteKit.SKSpriteNode

Parameters

texture
SKTexture
normalMap
SKTexture

Returns

Attributes

Applies to