# How to change texture tiling at runtime ?

**URL:** <https://forums.unrealengine.com/t/how-to-change-texture-tiling-at-runtime/692891>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, question, Blueprint, Datasmith-Runtime\
**Created:** [November 17, 2022, 3:11pm UTC](https://forums.unrealengine.com/t/how-to-change-texture-tiling-at-runtime/692891 "2022-11-17T15:11:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![someonelsee1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/someonelsee1/32/566470_2.png) [@someonelsee1](https://forums.unrealengine.com/u/someonelsee1)\
**Post date:** [November 17, 2022, 3:11pm UTC](https://forums.unrealengine.com/t/how-to-change-texture-tiling-at-runtime/692891/1 "2022-11-17T15:11:15Z")

</div>

Hi fellows,  
Does anyone know how I should go about changing the texture tiling of a material at runtime?  
Example, I am in game, I drag and drop a material on a plane, and then I would like to be able to modify the tiling of this one with umg. Is this possible?  
I guess I need to call the material instance and change the U/V tiling but I don’t know how to go about it

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [November 17, 2022, 3:16pm UTC](https://forums.unrealengine.com/t/how-to-change-texture-tiling-at-runtime/692891/2 "2022-11-17T15:16:42Z")

</div>

Hope it helps

Take texture coordinates

split into U and V (R and G in RGB vector)

multiply each one by a scalar parameter…that will be the tile value

then you can optionally add another node adding an offset value for each

then merge U and V again and plug to the UV of the texture sample

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/c/dcca12c29505758293be5888edd28c85c351b631.png)

---

<div class="post-metadata">

**Author:** ![someonelsee1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/someonelsee1/32/566470_2.png) [@someonelsee1](https://forums.unrealengine.com/u/someonelsee1)\
**Post date:** [November 17, 2022, 3:23pm UTC](https://forums.unrealengine.com/t/how-to-change-texture-tiling-at-runtime/692891/3 "2022-11-17T15:23:55Z")

</div>

Thanks for the answer,  
I must have explained my problem badly I apologize, I already have this solution, I can already modify the tiling of my material.  
The real question is how do I do it AT RUNTIME when my material is already applied to an actor?  
Follow the video:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/1/70130b61a0e08cb7e49e91af3d7a1539a721fb2f.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/1/70130b61a0e08cb7e49e91af3d7a1539a721fb2f.mp4)

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [November 17, 2022, 3:28pm UTC](https://forums.unrealengine.com/t/how-to-change-texture-tiling-at-runtime/692891/4 "2022-11-17T15:28:31Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/b/a7be2e21f6e61d40e9b06327f917b1fc733b24a4.png)

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [November 17, 2022, 3:30pm UTC](https://forums.unrealengine.com/t/how-to-change-texture-tiling-at-runtime/692891/5 "2022-11-17T15:30:42Z")

</div>

when you right click a scalar value or any other parametric value in a material hyou can convert it to a PARAMETER and give it a name

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/4/ec49f1cc144a5f40ece3e647544217173c47cb3c.png)
