# drawMode

> The current draw mode of the Sprite Renderer.

## Definition

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

```csharp
public SpriteDrawMode drawMode { get; set; }
```

### Remarks

When the drawMode is set to [SpriteDrawMode.Sliced](/engine/6000.7/script-reference/unityengine/spritedrawmode/sliced.md) or [SpriteDrawMode.Tiled](/engine/6000.7/script-reference/unityengine/spritedrawmode/tiled.md), the SpriteRenderer will render the sprite as a 9-slice image.

![9 slice grid (drawMode)](/api/media?file=/engine/6000.7/media/images/9-slice-grid.png)

A 9-Slice image is where an image is divided into 9 portion.

The A, C, G and I section sizes will not be affected by the dimension of set by [SpriteRenderer.size](/engine/6000.7/script-reference/unityengine/spriterenderer/size.md).

The B and H section will be repeated horizontally.

The D and F section will be repeated vertically.

The E section will be stretched or repeated both horizontally or vertically.

When set to [SpriteDrawMode.Sliced](/engine/6000.7/script-reference/unityengine/spritedrawmode/sliced.md), the B, D, E, F, H section will be stretched to fit the dimension ![9 slice sliced mode (drawMode)](/api/media?file=/engine/6000.7/media/images/9-slice-sliced-mode.png)

When set to [SpriteDrawMode.Tiled](/engine/6000.7/script-reference/unityengine/spritedrawmode/tiled.md), the B, D, E, F, H section will be repeated to fit the dimension ![9 slice tiled mode (drawMode)](/api/media?file=/engine/6000.7/media/images/9-slice-tiled-mode.png)
