Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

ModelImporterClipAnimation.loop

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public bool loop;

Description

Determines whether the animation clip should loop continuously.

When set to true, the animation clip seamlessly repeats from the beginning when it reaches the end. This is useful for cyclical animations like walking, running, or idle animations.

When false, the animation plays once and stops at the last frame. This is typically used for one-time actions like attacks, jumps, or cutscene animations.

Note: This property works in conjunction with ModelImporterClipAnimation.loopTime and ModelImporterClipAnimation.loopPose to control different aspects of looping behavior.