Instance Method

initWithTileGroups:

Initializes a new tile set with an array of tile groups and rectangular grid layout.

Declaration

- (instancetype)initWithTileGroups:(NSArray<SKTileGroup *> *)tileGroups;

Parameters

tileGroups

An array of SKTileGroup objects from which to create the tile set from.

Return Value

A new tile set.

See Also

Creating a Tile Set Programmatically

- initWithTileGroups:tileSetType:

Initializes a new tile set with an array of tile groups and specified layout.