How to make a smooth change in the value of the script canvas?

How to make a smooth change in the value of the script canvas? What nodes are there to accomplish this task?

On graph start → HeartBeat → Get Custom Number Variable → Add (+) → Set Custom Number Variable. This gives you a slow increase, just set the Add (+) to something like 0.001, and after the Set Custom Number Variable you can have a Greater Than or Equal To (>=) True → HeartBeat Stop. This allows you to set a given number you want it to reach and stop at that point.
*Edit - I forgot to add, the Custom Number Variable is what you plug into whatever you want to gradually go up. So just for tests you could have On Custom Number Variable Changed → Get Custom Number Variable → Print (Debug)

1 Like