# autoTiling

> Determines whether the PolygonCollider2D's shape is automatically updated based on a SpriteRenderer's tiling properties.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public bool autoTiling { get; set; }
```

### Remarks

When this is true, the Collider's shape is generated from a SpriteRenderer, if one exists as a component of the parent GameObject. The shape generated is dependent on the [\_drawMode](/engine/6000.7/script-reference/unityengine/spriterenderer/drawmode.md). Regeneration happens when the `autoTiling` property is set to true, and subsequently every time a change is detected in the associated SpriteRenderer.
