Reply To: In the Dynamic Color Change video, you create a lerp function to nicely change the color of the cube. My question is if yo…

Forum Archive In the Dynamic Color Change video, you create a lerp function to nicely change the color of the cube. My question is if yo… Reply To: In the Dynamic Color Change video, you create a lerp function to nicely change the color of the cube. My question is if yo…

#23008
Jonathan Gonzalez
Participant

    Glad you figured it out. It’s original done in update because that allows it to gradually change color. If it’s done in OnCollisionEnter it happens very quickly and the effect doesn’t get to complete. So using the collision function to enable/disable a bool which determines when to lerp is a suitable solution.