Instance Method

initWithTexture:size:

Initializes a new tile definition of a specified size with a single texture.

Declaration

- (instancetype)initWithTexture:(SKTexture *)texture size:(CGSize)size;

Parameters

texture

The texture to reference for the definition's content.

size

The size of the tile in points.

Return Value

A new tile definition.

See Also

Creating a Tile with a Size