Initializer

init(tileDefinition:)

Creates and initializes a simple tile group with a single tile definition.

Declaration

init(tileDefinition: SKTileDefinition)

Parameters

tileDefinition

The tile definition to place in a tile map.

Return Value

A new tile group.

See Also

Creating Tile Groups

Creating Tile Groups Programmatically

Paint tiles on a map by putting tile definitions in a group that you create in code.

init(rules: [SKTileGroupRule])

Creates and initializes a tile group with the specified tile group rules.