spriteNodeWithTexture:
Initializes a textured sprite using an existing texture object.
Declaration
+ (instancetype) spriteNodeWithTexture:(SKTexture *) texture;Parameters
- texture:
A SpriteKit texture.
Return Value
A newly initialized sprite object.