SKSpriteNode.FromTexture 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
FromTexture(SKTexture) |
Creates a new sprite node from the specified texture. |
FromTexture(SKTexture, CGSize) |
Creates a new sprite node from the specified texture and resizes it to the specified size. |
FromTexture(SKTexture)
Creates a new sprite node from the specified texture.
[Foundation.Export("spriteNodeWithTexture:")]
public static SpriteKit.SKSpriteNode FromTexture (SpriteKit.SKTexture texture);
static member FromTexture : SpriteKit.SKTexture -> SpriteKit.SKSpriteNode
Parameters
Returns
- Attributes
Applies to
FromTexture(SKTexture, CGSize)
Creates a new sprite node from the specified texture and resizes it to the specified size.
[Foundation.Export("spriteNodeWithTexture:size:")]
public static SpriteKit.SKSpriteNode FromTexture (SpriteKit.SKTexture texture, CoreGraphics.CGSize size);
static member FromTexture : SpriteKit.SKTexture * CoreGraphics.CGSize -> SpriteKit.SKSpriteNode
Parameters
- size
- CGSize
Returns
- Attributes