When creating a tile map node programmatically, this function performs a fill operation with the specified tile group.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
func fill(with tileGroup: SKTile Group?)
Parameters
tileGroup
The tile group that will be used to fill the map.
Discussion
This function is for use when you're creating a tile map programmatically, versus creating it ahead of time with the scene editor.