How to lerp smoothly between two numbers?

Hi,

I have a slider that is controlling the colour of a material, I want to be able to smoothly lerp between the values so that the jump is not so harsh, how do I go about doing this?

Can you clarify what you mean? What jump are you referring to?

1 Answer

1

You could take a look at the reference for Material.color.

There is an example to fade color over a defined duration.