"Toggle" node with more than two options

Your feedback is very important to us. We are listening.

"Toggle" node with more than two options

Postby Monobanda » Wed Jul 04, 2018 12:35 pm

Hi all,

I'm looking for a way to be able to choose input from 3 options. So similar to i.e. the Toggle Switch node or the Static Switch node, except that these are limited to only two options (true/false).
In my case, I use a Vertex Position node and I want to be able to choose either X, Y or Z as input from the Inspector window (so they need to be public).

How do I achieve this?
Monobanda
 
Posts: 7
Joined: Mon Jul 02, 2018 2:55 pm

Re: "Toggle" node with more than two options

Postby Amplify_Borba » Wed Jul 04, 2018 3:45 pm

Hello!

We recommend that you do this by using the Static Switch with the Type "Keyword Enum" selected, as per the screenshot below:

Image

Alternatively, you can also use the Custom Expression node, although we can't really recommend using conditional instructions for this purpose:

Image

Please let me know if you have any further questions, 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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 7 guests

cron