unity vector2.lerp code example
Example 1: vector3.lerp
Vector3.Lerp(startMarker.position, endMarker.position, fractionOfJourney);
//Smoothly transition between 2 locations over time, fractionOfJourney is time instance
Example 2: vector3.Lerp unity
//public static Vector3 Lerp(Vector3 a, Vector3 b, float t);
Vector3 pos = Vector3.Lerp(a,b,t);