Page 1 of 1

"Toggle" node with more than two options

PostPosted: Wed Jul 04, 2018 12:35 pm
by Monobanda
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?

Re: "Toggle" node with more than two options

PostPosted: Wed Jul 04, 2018 3:45 pm
by Amplify_Borba
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!