Documentation

Unity Engine

Unity Engine

loopTime

Controls whether Unity blends the first and last frames to create smooth time-based looping.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public bool loopTime { get; set; }

Remarks

This property specifically handles the temporal aspect of looping by ensuring smooth transitions between the end and beginning of the animation clip.
When enabled, Unity analyzes the first and last frames of the animation and applies blending to eliminate discontinuities in the animation curves over time. This prevents jarring jumps when the animation loops.
This differs from ModelImporterClipAnimation.loop which simply determines whether the clip repeats, and ModelImporterClipAnimation.loopPose which handles pose blending for spatial continuity.
Typically used in combination with
loop = true
for cyclical animations where temporal smoothness is important, such as walk cycles or ambient animations.