Contents

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.

See Also

Creating a Sprite from a Texture