# TileFlags

> Flags controlling behavior for the TileBase.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.7/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

```csharp
[Flags]
public enum TileFlags
```

## Fields

| Value                                                                                                                                  | Description                                                                                                                                                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [InstantiateGameObjectRuntimeOnly](/engine/6000.7/script-reference/unityengine/tilemaps/tileflags/instantiategameobjectruntimeonly.md) | [TileBase](/engine/6000.7/script-reference/unityengine/tilemaps/tilebase.md) does not instantiate its associated GameObject in editor mode and instantiates it only during Play mode.                                                         |
| [KeepGameObjectRuntimeOnly](/engine/6000.7/script-reference/unityengine/tilemaps/tileflags/keepgameobjectruntimeonly.md)               | Keeps the [TileBase](/engine/6000.7/script-reference/unityengine/tilemaps/tilebase.md)'s associated GameObject in Play mode when replaced with another [TileBase](/engine/6000.7/script-reference/unityengine/tilemaps/tilebase.md) or erased |
| [LockAll](/engine/6000.7/script-reference/unityengine/tilemaps/tileflags/lockall.md)                                                   | All lock flags.                                                                                                                                                                                                                               |
| [LockColor](/engine/6000.7/script-reference/unityengine/tilemaps/tileflags/lockcolor.md)                                               | [TileBase](/engine/6000.7/script-reference/unityengine/tilemaps/tilebase.md) locks any color set by brushes or the user.                                                                                                                      |
| [LockTransform](/engine/6000.7/script-reference/unityengine/tilemaps/tileflags/locktransform.md)                                       | [TileBase](/engine/6000.7/script-reference/unityengine/tilemaps/tilebase.md) locks any transform matrix set by brushes or the user.                                                                                                           |
| [None](/engine/6000.7/script-reference/unityengine/tilemaps/tileflags/none.md)                                                         | No [TileFlags](/engine/6000.7/script-reference/unityengine/tilemaps/tileflags.md) are set.                                                                                                                                                    |
