# Is Tiling Middle Sections

## Introduction

The `Is Tiling Middle Sections` property controls whether the non-corner sections of a NineSlice are tiled (repeated) instead of stretched. By default this value is `false`, meaning the middle sections stretch to fill the available space. When set to `true`, the middle sections repeat their texture at its natural size instead of stretching.

This property appears in the **Source** category in the **Variables** tab.

This is useful for textures with repeating patterns like brick walls, chains, or borders where stretching would distort the pattern.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2F3100tQnYlNEZ4zrspG70%2F26_06%2039%2051.gif?alt=media&#x26;token=9f0e9b99-0a83-47f9-8817-5048ca46118c" alt=""><figcaption><p>Two NineSlices, one streching and one tiling middle section</p></figcaption></figure>

## Default Behavior (Stretching)

By default, when a NineSlice is resized, the five non-corner sections (Top, Bottom, Left, Right, and Center) are stretched to fill the space between the corners. This works well for smooth or gradient textures, but can create visible distortion with patterned textures.

## Tiling Behavior

When `Is Tiling Middle Sections` is set to `true`, the five non-corner sections repeat their texture instead of stretching:

* **Top** and **Bottom** edges tile horizontally
* **Left** and **Right** edges tile vertically
* **Center** section tiles in both directions

The four corner sections (Top Left, Top Right, Bottom Left, Bottom Right) are never tiled — they always render at their natural size regardless of this setting.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flatredball.com/gum/gum-tool/gum-elements/nineslice/is-tiling-middle-sections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
