SKSpriteNode.Create 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.
Overloads
| Name | Description |
|---|---|
| Create(String, Boolean) | |
| Create(SKTexture, SKTexture) |
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