Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimatorState.cycleOffset

Switch to Manual
public var cycleOffset: float;

Description

Offset at which the animation loop starts. Useful for synchronizing looped animations. Units is normalized time.

AnimationClip loop time needs to be checked to use cycle offset, otherwise cycle offset won't have any effect. Valid range is 0 to 1.0.