Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AnimatorState.cycleOffset

public float cycleOffset;

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.

Did you find this page useful? Please give it a rating: