通过sp.Skeleton 的 注册监听 event中怎么获取事件帧名称
this._skeleton.setAnimationListener(this,(event,trackIndex,type)=>{
console.log(“事件”+event);
console.log(“type”+type);
console.log(“sp.Skeleton.START”+sp.AnimationEventType.START);
if (type == sp.AnimationEventType.START){
console.log(“开始动画”);
}else if (type == sp.AnimationEventType.END){
console.log(“结束动画”);
}else if (type == sp.AnimationEventType.COMPLETE){
console.log(“播放完成动画”);
}else if (type == sp.AnimationEventType.EVENT){
console.log(“动画事件”+ event);
}
});