AnimationClip constructor

AnimationClip(
  1. dynamic name, [
  2. num duration = -1,
  3. dynamic tracks,
  4. int blendMode = NormalAnimationBlendMode,
])

Implementation

AnimationClip(name,
    [num duration = -1, tracks, int blendMode = NormalAnimationBlendMode]) {
  this.name = name;
  this.tracks = tracks;
  this.duration = duration;
  this.blendMode = blendMode;

  uuid = MathUtils.generateUUID();

  // this means it should figure out its duration by scanning the tracks
  if (this.duration < 0) {
    resetDuration();
  }
}