# Access Texture Coordinate Index via Material Instance?

**URL:** <https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962>\
**Category:** Asset Creation\
**Tags:** uv-coordinates, unreal-engine, question\
**Created:** [August 14, 2014, 1:34pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962 "2014-08-14T13:34:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Cooke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matt\_Cooke](https://forums.unrealengine.com/u/Matt_Cooke)\
**Post date:** [August 14, 2014, 1:34pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/1 "2014-08-14T13:34:14Z")

</div>

I am trying to set up a material that allows me to adjust the texture coordinate index in my material instance. Is this possible? I currently have a setup that allows me to edit the uv tiling (see attached picture), but I can’t figure out how to gain parameter access to the coordinate index. This would be really useful, so any ideas would be greatly appreciated!  
Thanks,  
Matt

 ![12732-uv_tiling_params_01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/6/516a0a76b52216a3e74ee1125bb2f0c9da5b724c.jpeg)

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [August 14, 2014, 9:21pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/2 "2014-08-14T21:21:00Z")

</div>

Hey Matt\_Cooke -

There is no direct way to set up a parameter control of the UV Cooridnate index, but there is a workaround of sorts. You can add a StaticSwitchParameter and have one UV Index attached to True and Another Attached to False then the output connected to your Tiling Parameters above.

![12762-uvcoord.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/1/7010d86810688cd35bdf7300ed7512a74412b5b3.jpeg)

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![Matt\_Cooke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matt\_Cooke](https://forums.unrealengine.com/u/Matt_Cooke)\
**Post date:** [August 14, 2014, 9:53pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/3 "2014-08-14T21:53:29Z")

</div>

Thanks Eric,  
That works perfectly!  
For anyone else wanting to set this up, the network looks like this:

 ![12777-uv_tiling_params_02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/7/557f766826d71df9c6e49807ae928962b5d9a800.jpeg)

---

<div class="post-metadata">

**Author:** ![babadook84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@babadook84](https://forums.unrealengine.com/u/babadook84)\
**Post date:** [September 25, 2020, 7:17pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/4 "2020-09-25T19:17:54Z")

</div>

I keep seeing the workaround for switching between two coordinate indexes but how about 5 or even 7? Anything over two?

---

<div class="post-metadata">

**Author:** ![QQ344141](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@QQ344141](https://forums.unrealengine.com/u/QQ344141)\
**Post date:** [April 8, 2021, 8:42am UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/5 "2021-04-08T08:42:58Z")

</div>

![335169-q.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/5/975f482fea10848263e2bbcc4c1e5f5085a24cfa.png)

easy

---

<div class="post-metadata">

**Author:** ![YedesCodes](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yedescodes/32/981996_2.png) [@YedesCodes](https://forums.unrealengine.com/u/YedesCodes)\
**Post date:** [June 4, 2021, 9:01am UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/6 "2021-06-04T09:01:40Z")

</div>

Hi, I can prupose a solution that works for N coordinate index

You need to create a _Custom_ node that takes as inputs the desired TexCoor[i] nodes and a _Scalar Parameter_ that indicates the desired coordinate index to pass in the material instance. And then a simple _if_ or _switch_ in HLSL/GLSL code and that’s it.

I post image to explain better :

 ![340491-cordinateindex.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/3/103bb4c1ff2d6c05f9065bedb5cc68c24a3baf29.png)

Hope this helps you 🙂

---

<div class="post-metadata">

**Author:** ![Crouberg\_RUS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crouberg\_RUS](https://forums.unrealengine.com/u/Crouberg_RUS)\
**Post date:** [September 7, 2023, 10:31pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/7 "2023-09-07T22:31:06Z")

</div>

Also, you can use “Switch” node from Math section. Easier than custom node and no any Switch Parametrs

 ![изображение_2023-09-07_233522930](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/3/493ec3c09f5331af9fb464038be67559d8086e57.png)

---

<div class="post-metadata">

**Author:** ![Blood\_Eros](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Blood\_Eros](https://forums.unrealengine.com/u/Blood_Eros)\
**Post date:** [September 22, 2023, 10:43pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/8 "2023-09-22T22:43:13Z")

</div>

Worked like a charm. Thank you!

---

<div class="post-metadata">

**Author:** ![Tyger2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tyger2/32/986238_2.png) [@Tyger2](https://forums.unrealengine.com/u/Tyger2)\
**Post date:** [January 23, 2024, 4:05am UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/9 "2024-01-23T04:05:44Z")

</div>

Can’t seem to find this node in 5.1. Was it introduced in newer versions?

---

<div class="post-metadata">

**Author:** ![Crouberg\_RUS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crouberg\_RUS](https://forums.unrealengine.com/u/Crouberg_RUS)\
**Post date:** [January 29, 2024, 8:28am UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/10 "2024-01-29T08:28:20Z")

</div>

Hi. Everything the same. Working on 5.2

---

<div class="post-metadata">

**Author:** ![origin.geometry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@origin.geometry](https://forums.unrealengine.com/u/origin.geometry)\
**Post date:** [December 24, 2024, 7:25pm UTC](https://forums.unrealengine.com/t/access-texture-coordinate-index-via-material-instance/290962/11 "2024-12-24T19:25:48Z")

</div>

I have used a switch node with a scalar function input node in a material function and reused it for my multi-mapped uv objects. It can be called in instances on the go.

 ![Screenshot 2024-12-24 191344](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/2/bb2a3e9089128ff153a1e774989c1fb746dd7087.png)
