# How can I 'lock' UVs on scaled meshes?

**URL:** <https://forums.unrealengine.com/t/how-can-i-lock-uvs-on-scaled-meshes/398640>\
**Category:** AI\
**Tags:** unreal-engine, lock, scale, question\
**Created:** [June 12, 2017, 9:16am UTC](https://forums.unrealengine.com/t/how-can-i-lock-uvs-on-scaled-meshes/398640 "2017-06-12T09:16:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_50221a61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50221a61](https://forums.unrealengine.com/u/anonymous_user_50221a61)\
**Post date:** [June 12, 2017, 9:16am UTC](https://forums.unrealengine.com/t/how-can-i-lock-uvs-on-scaled-meshes/398640/1 "2017-06-12T09:16:22Z")

</div>

I have a mesh that I want to scale depending on where it is being used. It is a piece of a building wall. When I scale the mesh, the UVs also scale, as expected. However, how can I ‘lock’ the UVs so that they do not scale with the actor?

---

<div class="post-metadata">

**Author:** ![Micky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Micky](https://forums.unrealengine.com/u/Micky)\
**Post date:** [June 12, 2017, 9:35am UTC](https://forums.unrealengine.com/t/how-can-i-lock-uvs-on-scaled-meshes/398640/2 "2017-06-12T09:35:17Z")

</div>

You can do it from the material editor.  
Put a “texture coordinate” node and multiply it for a fraction of the “Object Radius” node.

Another way is using the “WorldAlignedTexture” node

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_50221a61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50221a61](https://forums.unrealengine.com/u/anonymous_user_50221a61)\
**Post date:** [June 12, 2017, 9:46am UTC](https://forums.unrealengine.com/t/how-can-i-lock-uvs-on-scaled-meshes/398640/3 "2017-06-12T09:46:08Z")

</div>

Interesting. I attach a screen grab to perhaps get a bit more help.

 ![200453-scale+mesh+uv+question2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/8/1c8019666f7b527f1539b206e373cbf496ec583e.jpeg)

And this is the basic normal map I am using to make the walls look ‘ribbed’.

 ![200454-halfrounda_normal.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/3/a9376ebf272354cec8811c4e61cd2ef4f4a60175.png)

This piece of texture would equate to around 50x50cm. Would your suggestion work in this case, and if so, can you elaborate?

---

<div class="post-metadata">

**Author:** ![Micky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Micky](https://forums.unrealengine.com/u/Micky)\
**Post date:** [June 12, 2017, 12:15pm UTC](https://forums.unrealengine.com/t/how-can-i-lock-uvs-on-scaled-meshes/398640/4 "2017-06-12T12:15:15Z")

</div>

here you got the world aligned version, probably the one fit better with your project.

 ![190501-worldaligned.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/b/2eb9c4b1122500566adab2e7dab87ea47d247f6c.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_50221a61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50221a61](https://forums.unrealengine.com/u/anonymous_user_50221a61)\
**Post date:** [June 12, 2017, 2:09pm UTC](https://forums.unrealengine.com/t/how-can-i-lock-uvs-on-scaled-meshes/398640/5 "2017-06-12T14:09:54Z")

</div>

Fabulous - thanks Micky.
