cocos 2.1.1的版本开始支持 3d效果,可以设置光线,摄像机,播放FBX资源文件等等,
因为项目需求,要播放FBX文件,解决了。上代码
playNextAnimation () {
let animation = this.getComponent(cc.Animation);
let clips = animation.getClips();
if (!clips[this.playingIndex]) {
this.playingIndex = 0;
}
animation.play(clips[this.playingIndex].name);
this.playingIndex++;
},