How to use the loopOnce function from three

Find comprehensive JavaScript three.loopOnce code examples handpicked from public code repositorys.

119
120
121
122
123
124
125
126
127
128
  this.animationClip = THREE.AnimationClip.CreateClipsFromMorphTargetSequences(
    morphAttribute, 10, true);
  if (this.animationClip && (this.animationClip[0] != undefined)) {
    this.clipAction = this.mixer.clipAction(this.animationClip[0]).setDuration(
      this.duration);
    this.clipAction.loop = THREE.loopOnce;
    this.clipAction.clampWhenFinished = true;
    this.clipAction.play();
  }
}
fork icon10
star icon3
watch icon3

+ 14 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)