unity 2d mathf.lerp float code example Example: how to lerp a value in unity lerpValue = Mathf.Lerp(minValue, maxValue, interpolationPoint);