How to get a variable as input to material function

Hi

I just cant seem to figure this one out.

How can I get a material function to accept a number as a input? I just want to allow the function to accept a single number to set the speed of a shake.

This is the function I have at the moment.

Thanks in advance.

Hi IndieGameCove, thanks for the help, however I’m still a little confused. This doesn’t seem to have a option for single number all option seem to be vector3 at least

if you just search for ‘input’ the ‘functioninput’ node should come up. then the node has a drop down to select the input type. you could also open up another function and copy paste it over.

1 Like

Input type should be scalar. You can ignore the preview value.

1 Like