◆ LerpPosition()

static void LerpPosition ( this Transform  transform,
Vector3  finalPosition,
float  fraction 
)
static
Parameters
transformthis is the calling transform, which will have it's position adjusted.
finalPositionthis is the final position the transform will be lerped towards.
fractionfractional amount to lerp from this transform's current position to the provided finalPosition.