# SliceType

> The slice type determines whether the center of the image is scaled or tiled.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum SliceType
```

## Fields

| Value                                                                                | Description                                                                                                                         |
| ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| [Sliced](/engine/6000.5/script-reference/unityengine/uielements/slicetype/sliced.md) | Fill the slices by stretching the center and sides.                                                                                 |
| [Tiled](/engine/6000.5/script-reference/unityengine/uielements/slicetype/tiled.md)   | Fill the slices by tiling the center and sides. Image must be imported as a Sprite (2D and UI) and have Mesh Type set to Full Rect. |
