Instance Method

initWithTexture:

Initializes a new tile definition with a single texture.

Declaration

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

Parameters

texture

The texture to reference for the definition's size and content.

Return Value

A new tile definition.

Discussion

The size of the newly created tile definition will be the same as the texture used to initialize it.

See Also

Creating a Tile with a Texture