Can I use a parameter to select a uv channel?

Just that really. I want to have a node to choose between uv set in a material instance - is that even possible?

It is not possible as far as i know.

Oh yeah, that’s a solution. :slight_smile:

And if you really need this option in runtime you can do something like this:

When you set that scalar parameter to 0, it selects the coordinate with UV channel 0, when it is 1 it selects UV channel 1.

1 Like

Hey Aten -

Jacky is half correct. There is no directly way to change the UV Coordinate at runtime. However, you can create a Static Switch Parameter that switches from a Texture Coordinate with an index of 0 to one with an index to 1. You can then use a Material Instance to switch between the two indices. As I said there are limitations, you cannot switch at runtime and with coordinate indices it is important to note that with tangent space normals (most normal maps in the engine) they will only ever reference Coordinate Index 0.

Here is a real quick breakdown of the material set up:

Thank You

Eric Ketchum

Hey thanks for the reply, sorry I didn’t get an email with your response so only just checked :slight_smile:

This is great - cheers!

this works with switching between two coordinates. What if you wanted to add to that, say 5-7 coordinates?

1 Like

I Created a UV Channel Selector Material Function if anyone is interested. Uses a parameter to select a single UV channel from any number of UV channels inputs.

1 Like