---
title: enableAutomapping
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sktilemapnode/enableautomapping
---

# enableAutomapping

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

## Declaration

```swift
var enableAutomapping: Bool { get set }
```

## Discussion

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

- [fill(with:)](spritekit/sktilemapnode/fill(with:).md)
- [setTileGroup(_:andTileDefinition:forColumn:row:)](spritekit/sktilemapnode/settilegroup(_:andtiledefinition:forcolumn:row:).md)
- [setTileGroup(_:forColumn:row:)](spritekit/sktilemapnode/settilegroup(_:forcolumn:row:).md)
