# Texture Settings for UI Widget Backgrounds/Borders

**URL:** <https://forums.unrealengine.com/t/texture-settings-for-ui-widget-backgrounds-borders/1375605>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, question\
**Created:** [November 9, 2023, 11:02am UTC](https://forums.unrealengine.com/t/texture-settings-for-ui-widget-backgrounds-borders/1375605 "2023-11-09T11:02:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 9, 2023, 2:40pm UTC](https://forums.unrealengine.com/t/texture-settings-for-ui-widget-backgrounds-borders/1375605/6 "2023-11-09T14:40:12Z")

</div>

Well, you’re not using the feature yet:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/7/0872c9865f0b83e803a5e862aa81f1d822994951.png)

Once you’ve decided on the desired mode, use margins to dictate the behaviour. For this particular shape, you’ll need margins around 0.4. The actual math:

> [@9-slice scaling UMG image](https://forums.unrealengine.com/t/9-slice-scaling-umg-image/123231/4):
>
> The margins are percentage, as you said. For the image you posted, you’d have to keep margins at 0.4 or 0.35 - eyeballing it here, you may get away with 0.3 A margin 0.4 for an image 100x100 pixels would mean that when you stretch the image, only the 20 pixels in the middle will be stretched. The 40% from all sides will just stick to the edges. To get a good result, it’s always better to produce a base image that will never be scaled down, only up - basically make the smallest you will need an…

---

_[View the full topic](https://forums.unrealengine.com/t/texture-settings-for-ui-widget-backgrounds-borders/1375605)._
