◆ LerpRotation()

static void LerpRotation ( this Transform  transform,
Quaternion  finalRotation,
float  fraction 
)
static
Parameters
transformthis is the calling transform, which will have it's rotation adjusted.
finalRotationthis is the final rotation the transform will be lerped towards.
fractionfractional amount to lerp from this transform's current rotation to the provided finalRotation.