yannliao / threejs-example-for-miniprogram

这是一个 three.js 在微信小程序里的使用示例
MIT License
271 stars 87 forks source link

AnimationAction 动画结束播放事件 #14

Open neciszhang opened 4 years ago

neciszhang commented 4 years ago

您好,想请教一下: 官网上: 有两个事件分别表示了单次循环的结束和全部动作的结束,你可以这样对它们做出响应: mixer.addEventListener( 'loop', function( e ) { …} ); // properties of e: type, action and loopDelta mixer.addEventListener( 'finished', function( e ) { …} ); // properties of e: type, action and direction

在小程序该如何写呀。

yannliao commented 4 years ago

mixer 应该也是可以 addEventListener