Contents

enableAutomapping

When creating a tile map node programmatically, specifies whether the tile map uses automapping behavior like the scene editor.

Declaration

var enableAutomapping: Bool { get set }

Discussion

This function is for use when you’re creating a tile map programmatically, versus creating it ahead of time with the scene editor.

Set this value to true when you want automapping behavior (equivalent to using the paint brush in the scene editor) when using the fill(with:), and setTileGroup(_:andTileDefinition:forColumn:row:) functions.

See Also

Defining a Tile Map’s Contents