# How to rotate 90 degrees the Texture Sample?

**URL:** <https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662>\
**Category:** Asset Creation\
**Tags:** unreal-engine, rotate, question\
**Created:** [April 25, 2014, 11:33pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662 "2014-04-25T23:33:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martinez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Martinez](https://forums.unrealengine.com/u/Martinez)\
**Post date:** [April 25, 2014, 11:33pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/1 "2014-04-25T23:33:36Z")

</div>

Hi there!  
Sorry about this noob question, but I tried searching for a solution for it with no success.

I would like to know if there is any node in the Material Editor that can rotate a texture sample 90 degrees. I thought that the TextureCoordinate would do that, but it seems it does not.  
If there is no option for it in the material editor, is there any other option besides changing the original texture file?

Thanks a lot!

Martinez

---

<div class="post-metadata">

**Author:** ![Dieselhead](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dieselhead](https://forums.unrealengine.com/u/Dieselhead)\
**Post date:** [April 25, 2014, 11:39pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/2 "2014-04-25T23:39:13Z")

</div>

The node CustomRotator can be used for this 🙂

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [April 25, 2014, 11:41pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/3 "2014-04-25T23:41:45Z")

</div>

CustomRotator node is what you are looking for. Give .5-.5 for rotation center and .25 for angle.

---

<div class="post-metadata">

**Author:** ![Martinez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Martinez](https://forums.unrealengine.com/u/Martinez)\
**Post date:** [April 26, 2014, 12:06am UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/4 "2014-04-26T00:06:27Z")

</div>

Thanks a lot! That´s exactly what I was looking for!

---

<div class="post-metadata">

**Author:** ![AgentMilkshake1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentMilkshake1](https://forums.unrealengine.com/u/AgentMilkshake1)\
**Post date:** [January 19, 2015, 5:25pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/5 "2015-01-19T17:25:30Z")

</div>

Hey guys, slightly struggling with this, I’ve got to this point, but when I plug in the rotated values into the customised UV0, my image is just drawing black.

 ![27206-ue4+progress.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/7/6b7f4b9ba96f2f00368399cd5495693204b8e8aa.jpeg)

I am trying to rotate the whole image 90 degree’s anti-clockwise.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [January 19, 2015, 9:44pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/6 "2015-01-19T21:44:54Z")

</div>

You need to plug the Rotated Values output of the CustomRotator to the UV input of your texture, not Customized UV.

---

<div class="post-metadata">

**Author:** ![AgentMilkshake1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentMilkshake1](https://forums.unrealengine.com/u/AgentMilkshake1)\
**Post date:** [January 20, 2015, 9:36am UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/7 "2015-01-20T09:36:35Z")

</div>

Ah yeah, thought it might be, annoyingly that won’t work because of the math of the UV’s is worked out below. I’ll find a work around! Cheers

---

<div class="post-metadata">

**Author:** ![jooseppalm\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jooseppalm\_1](https://forums.unrealengine.com/u/jooseppalm_1)\
**Post date:** [April 14, 2015, 1:53pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/8 "2015-04-14T13:53:08Z")

</div>

it doesnt work ples help :(((

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [April 14, 2015, 2:02pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/9 "2015-04-14T14:02:32Z")

</div>

What doesnt work exactly? Post a screenshot of your material setup please.

---

<div class="post-metadata">

**Author:** ![jooseppalm\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jooseppalm\_1](https://forums.unrealengine.com/u/jooseppalm_1)\
**Post date:** [April 15, 2015, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/10 "2015-04-15T15:46:37Z")

</div>

thx for answering… sorry it took so long to answer…  
basically i did everything said but it still wont rotate ☹  
did i do somethin wrong?

 ![38876-screenshot+(15).jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/b/82b7435540329395308c1743c61f84ab8cb29643.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [April 15, 2015, 4:11pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/11 "2015-04-15T16:11:08Z")

</div>

It looks fine, but i think you want to rotate the texture constantly? If that’s the case you can use a **Rotator** node instead.

---

<div class="post-metadata">

**Author:** ![jooseppalm\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jooseppalm\_1](https://forums.unrealengine.com/u/jooseppalm_1)\
**Post date:** [April 17, 2015, 3:08pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/12 "2015-04-17T15:08:40Z")

</div>

im trying to create asphalt

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [April 24, 2015, 1:00am UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/13 "2015-04-24T01:00:42Z")

</div>

If you are still trying to solve this you should rotate the mesh via landscape spline settings instead of the texture.

---

<div class="post-metadata">

**Author:** ![Adrijardi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adrijardi](https://forums.unrealengine.com/u/Adrijardi)\
**Post date:** [October 26, 2015, 4:58pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/14 "2015-10-26T16:58:01Z")

</div>

CustomRotator can be used for this indeed, note that additionally the CustomRotator will need to have the UVs input connected to a Texture Coordinates node or “TexCoord”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37d46923](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37d46923](https://forums.unrealengine.com/u/anonymous_user_37d46923)\
**Post date:** [October 26, 2015, 7:32pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/15 "2015-10-26T19:32:16Z")

</div>

very useful  
thx !

---

<div class="post-metadata">

**Author:** ![MARC\_URB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MARC\_URB](https://forums.unrealengine.com/u/MARC_URB)\
**Post date:** [April 9, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/16 "2016-04-09T15:39:58Z")

</div>

![86086-ur4_tex_rot.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/f/effa62e831ff24d4f069d4d97acce7bc031ed970.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 8, 2017, 10:21am UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/17 "2017-06-08T10:21:50Z")

</div>

I have a carpet tile (500x500mm) that needs to be laid down at random 90 degree angles to create the desired pattern on my office floor mesh. How do I get a bitmap to randomly rotate by 0, 90, 180 and 270 degrees (nothing in between)? Can this custom rotator be used somehow?

---

<div class="post-metadata">

**Author:** ![Mighty\_Marcos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mighty\_Marcos](https://forums.unrealengine.com/u/Mighty_Marcos)\
**Post date:** [June 12, 2017, 6:06pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/18 "2017-06-12T18:06:41Z")

</div>

The easy answer would be to put the rotation angle as a parameter, and making your floor tiles a blueprint, so you could choose randomly through BP scripting. is it viable for your situation?

---

<div class="post-metadata">

**Author:** ![trozt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trozt](https://forums.unrealengine.com/u/trozt)\
**Post date:** [August 6, 2018, 10:01pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/19 "2018-08-06T22:01:46Z")

</div>

Tnxs , this helped me a lot!

---

<div class="post-metadata">

**Author:** ![ZENG1120](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZENG1120](https://forums.unrealengine.com/u/ZENG1120)\
**Post date:** [January 15, 2021, 6:14pm UTC](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662/20 "2021-01-15T18:14:14Z")

</div>

Thank you!

[Next page](https://forums.unrealengine.com/t/how-to-rotate-90-degrees-the-texture-sample/281662.md?page=2)
