Answers for "mathf.lerp unity"

C#
0

how to lerp a value in unity

lerpValue = Mathf.Lerp(minValue, maxValue, interpolationPoint);
Posted by: Guest on July-31-2020
0

mathf.lerp unity

using UnityEngine;

public class Unity_lerp : MonoBehaviour
{
    float start_value=80f;
    float end_value=50f;   



    // Update is called once per frame
    void Update()
    {
        Camera.main.fieldOfView=Mathf.Lerp(start_value,end_value,Time.time/5);
        
    }
}
Posted by: Vionix on April-12-2022

C# Answers by Framework

Browse Popular Code Answers by Language