# UMG and Material Editor - Tiling Relative to widget size

**URL:** <https://forums.unrealengine.com/t/umg-and-material-editor-tiling-relative-to-widget-size/43909>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 6, 2015, 3:56pm UTC](https://forums.unrealengine.com/t/umg-and-material-editor-tiling-relative-to-widget-size/43909 "2015-10-06T15:56:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lowkeygamedev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lowkeygamedev/32/1112663_2.png) [@Lowkeygamedev](https://forums.unrealengine.com/u/Lowkeygamedev)\
**Post date:** [October 6, 2015, 3:56pm UTC](https://forums.unrealengine.com/t/umg-and-material-editor-tiling-relative-to-widget-size/43909/1 "2015-10-06T15:56:25Z")

</div>

Hi,

Is there a way to tile the UVs of a texture based on its relation to the screen space/size?

I recently created a blog post where im trying to create customisable UI materials using parameters, you can see it here:

[http://www.rennfarnell.co.uk/2015/08/17/umg-brushes/](http://www.rennfarnell.co.uk/2015/08/17/umg-brushes/)

![Pasted-image-at-2015_10_06-11_30-AM-300x99.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/8/98c94221abe780c593d1610ef3cc879492f2a4ed.png)

My problem is that for each individually sized widget, i will need to create a new instance and change the UV tiling of the “Fill”.

![finalButton-300x118.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/d/1d66a00942637936749a89b20d27736bef8b9d6e.png)

If i can get this UV tiling issue sorted i think i can start thinking about making atlas materials in UMG and doing some really cool UI stuff!

Thanks everyone 🙂

**[EDIT]**  
Solved it - using the “SlotAsCanvasSlot” size and dividing by the texture dimensions and applying it to the tiling

![tilexy.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/8/a8c3abd04cf74dbff646c9ab0dcb02451750fa71.png)

 ![blueprint_tile.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/a/2a33d3f0ad1fae76c4db75f8407caf307d6590aa.png)  
 ![finaltiling.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/1/611db135ff1af214132e373523f1f352814125be.png)

---

<div class="post-metadata">

**Author:** ![MarcoMariaRossi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcomariarossi/32/1069093_2.png) [@MarcoMariaRossi](https://forums.unrealengine.com/u/MarcoMariaRossi)\
**Post date:** [June 11, 2019, 1:41pm UTC](https://forums.unrealengine.com/t/umg-and-material-editor-tiling-relative-to-widget-size/43909/2 "2019-06-11T13:41:16Z")

</div>

Hey, i’m trying to do a similar thing but i’m failing to get the correct size of my widgets if they are not the direct child of a canvas panel. Do you perhaps know a fix to that ?
