How do I set switch on int to a custom value?

A7357EC5-1D07-4395-9C83-2F1A1C2F6C96

You mean, reducing the number of possibilities and number of output pins for larger int values? The switch on int value only allows to set a start value and adds the pins without any way to set their specific values. And unfortunately, there’s no way to hide unused pins. So why not convert to a switch, that allows to specify pin values? A workaround could be:

Maybe not optimal for performance (string conversions) but depends on what you require…

Might also be possible to create a custom Switch on Int Blueprint node in C++ …

1 Like

Hi! Other possibility is to create a macro. For example:
image

You can concatenate several switches and output the values you want

1 Like