# Texture UV Tiling for a mesh with multiple material elements

**URL:** <https://forums.unrealengine.com/t/texture-uv-tiling-for-a-mesh-with-multiple-material-elements/1265860>\
**Category:** Getting Started & Setup\
**Tags:** uvs, unreal-engine\
**Created:** [August 19, 2023, 1:26pm UTC](https://forums.unrealengine.com/t/texture-uv-tiling-for-a-mesh-with-multiple-material-elements/1265860 "2023-08-19T13:26:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soldier0003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soldier0003](https://forums.unrealengine.com/u/Soldier0003)\
**Post date:** [August 19, 2023, 1:26pm UTC](https://forums.unrealengine.com/t/texture-uv-tiling-for-a-mesh-with-multiple-material-elements/1265860/1 "2023-08-19T13:26:26Z")

</div>

Hello, I am pretty new to Unreal Engine and creating assets.

I am trying to make a simple doorway asset with a megascans texture applied to it. I created 3 boxes in the modeling mode, scaled them to my liking, selected all 3 and converted them to a static mesh.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/b/3fbd64ac6deb4ae0b07d91e1438ad3702daa7601.jpeg)

This static mesh now has 3 material elements in the details window and I want to change the UV scaling for them to match up. Is there a way to merge the 3 boxes in a way so that it only has one material element and I only have to create one material instance? or do I need to create 2 instances, one for the sides and one for the top to scale the texture correctly?

I also have 2 extra questions:

1. If I want to scale the UV on the sides of the doorway do I need to apply the texture to the surfaces on the side separately before converting the boxes to a single mesh?  
This now comes back to the first question if I need to create a separate material instance for the sides.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/e/68e5ffd7ff2103c7b7a283c1e2ff64c57222ecc3.jpeg)

1. Is there a way to use the the dimensions of a surface to dynamically change the UV scale of a material?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 19, 2023, 1:54pm UTC](https://forums.unrealengine.com/t/texture-uv-tiling-for-a-mesh-with-multiple-material-elements/1265860/2 "2023-08-19T13:54:44Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/c/45ca81ceb7d22b2de3c33d0df8f9e7545e367dd9.jpeg "World-Aligned Textures - UE4 Materials 101 - Episode 22") ](https://www.youtube.com/watch?v=pXOknekvmwE)

---

<div class="post-metadata">

**Author:** ![Soldier0003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soldier0003](https://forums.unrealengine.com/u/Soldier0003)\
**Post date:** [August 20, 2023, 11:16am UTC](https://forums.unrealengine.com/t/texture-uv-tiling-for-a-mesh-with-multiple-material-elements/1265860/3 "2023-08-20T11:16:20Z")

</div>

Thanks for the reply.

I have watched a video about world aligned textures before making my post, but I feel like its a cheap solution to the problem and if I use it multiple times it will end up cutting the bricks in half at the top and bottom of the door frame.

And it also does not answer my other two questions.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 20, 2023, 11:36am UTC](https://forums.unrealengine.com/t/texture-uv-tiling-for-a-mesh-with-multiple-material-elements/1265860/4 "2023-08-20T11:36:00Z")

</div>

So I made these 3

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/4/e1449593be7c7e44399484d20072913ee23f9d60.jpeg)

Merged them with

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/5/0e565fa4f218301db58c29d32d22aa6bae8e070b.jpeg)

Now I have one actor with one material, but I have the UV problem

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/d/59d0403a83c1024478a6aea29d28c52699e21fa4.jpeg)

So I rewrite the UVs with a box projection ( reset the dimensions )

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/e/99e46b22ed52455a3060d868e4e665de28fc8f42.jpeg)

UVs are fine

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/b/88bca53cfac57e9f4cf78d9f38dc5d9ab9a855bd.jpeg)

Those are the only two methods, basically. ( map the UVS, or use world aligned ).

You may still find the bricks don’t align with the wall boundaries. Then you have to do a lot of fiddling with shifting the UVs.

In real life, you hardly every see the top or bottom of walls, so it doesn’t actually matter. There will be something else there.

Before

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/8/a2867c47be03b6f23e9cd1866003df798f472538.jpeg)

After

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/1/661b79e1a0467db107025568628f9368c9248e96.jpeg)

---

<div class="post-metadata">

**Author:** ![Soldier0003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soldier0003](https://forums.unrealengine.com/u/Soldier0003)\
**Post date:** [August 20, 2023, 1:27pm UTC](https://forums.unrealengine.com/t/texture-uv-tiling-for-a-mesh-with-multiple-material-elements/1265860/5 "2023-08-20T13:27:14Z")

</div>

Thanks a lot. My first mistake was converting to them to a mesh and not merging them and there is a lot I need to learn about Modeling.

I will try this method
