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
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
Returns
- Attributes