Expose parameters to change UV set

Node-based Shader Editor
Post Reply
jurassic_queer
Posts: 11
Joined: Thu Jul 20, 2017 4:40 pm

Expose parameters to change UV set

Post by jurassic_queer »

Is there a way to expose the UV set parameters so they can be swapped in the material? I know they can be changed all over the place within the editor, but I haven't seen a way to expose that the way you can with a lot of other things.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Expose parameters to change UV set

Post by Amplify_Borba »

jurassic_queer wrote:Is there a way to expose the UV set parameters so they can be swapped in the material? I know they can be changed all over the place within the editor, but I haven't seen a way to expose that the way you can with a lot of other things.
Hello!

Even though it's not possible to change the UV Set ID as if it were a property on the Texture Coordinates node, you may use one or more toggle switches to alternate between Texture Coordinate nodes with different ID's or, as an alternative, use one Lerp node instead of the toggle.

Image

Please let me know if this helps you out, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
jurassic_queer
Posts: 11
Joined: Thu Jul 20, 2017 4:40 pm

Re: Expose parameters to change UV set

Post by jurassic_queer »

Ah, that seems like it'll work for now. It'd be nice to be able change that as a property, but this will probably be a good workaround for now at least. Thank you for this!
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Expose parameters to change UV set

Post by Amplify_Borba »

jurassic_queer wrote:Ah, that seems like it'll work for now. It'd be nice to be able change that as a property, but this will probably be a good workaround for now at least. Thank you for this!
Sadly, given the way that shaders work, it won't be possible to expose and use UV Set ID's in similar fashion to other properties.

Still, I'm glad that the workaround works for you!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply