我导入了一个包含动画的gltf(CesiumMan) . 如果一切正常,它会走路 . 但是,当我添加脚本并运行时没有任何反应 . 这是我的脚本:
console.log(this);
var mixer = new THREE.AnimationMixer(this);
var animations = editor.animations[this.uuid];
if(animations) {
animations.forEach((clip)=> {
mixer.clipAction( clip ).play();
});
}
function update( event ) {
mixer.update(event.delta);
}
或者看看这张图片:runtime Info