# Custom Frame Texture Coordinate Width

## Introduction

The `Custom Frame Texture Coordinate Width` property allows a `NineSlice` to customize the number of pixels used on the source texture when defining its outer frame. This allows for fine control over which parts of a NineSlice stretch and which parts are used as the corners and edges.

By default this value is `null`, which means the `NineSlice` automatically dedicates 1/3 of the texture for the edges.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fgit-blob-ce10c2c08fba714d9bb22329db8f0c9160c43a3b%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Changing Custom Frame Texture Coordinate Width

If the `Custom Frame Texture Coordinate Width` value is changed, then the source texture applies a fixed pixel size to the borders. For example, using the image above, the frame can be changed to 3 so that only the black and white pixels are part of the border.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fgit-blob-ba0d88286860779dffa06c230b07fce59a531e86%2F16_06%2003%2033.png?alt=media" alt=""><figcaption><p>NineSlice with an explicitly-set 3 pixel border width</p></figcaption></figure>

### Custom Frame Texture Coordinate Width Set to 0

If `Custom Frame Texture Coordinate Width` is set to a value of 0, then the `NineSlice` does not draw a border. In other words, setting this value to 0 results in the `NineSlice` behaving like a `Sprite`.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2FaR3YGtv6EmbFQ4RIhCQ2%2F21_07%2048%2058.gif?alt=media&#x26;token=b67f37e1-c1c1-4c97-9d15-2fcd92dfd250" alt=""><figcaption></figcaption></figure>
