[]1.7.6版本 刚体动画加载

rootAnimations.templet     = Laya.AnimationTemplet.load(rani);
rootAnimations.player.play(0, 1, loop==true?Number.MAX_VALUE:0);
如上刚体动画(lrani)是否还可以使用 Laya.AnimationTemplet.load 加载,目前加载完成后,如下图注释部分出错。
/**
*@private
*/
__proto._computeFullKeyframeIndices=function(){
var anifullFrames=this._fullFrames=[];
var templet=this._templet;
var cacheFrameInterval=this._cacheFrameRateInterval *this._cachePlayRate;
//刚体动画时 templet 是AnimationClip对象 没有getAnimationCount方法!!!
for (var i=0,iNum=templet.getAnimationCount();i < iNum;i++){

 
已邀请:

183*****755

赞同来自:

这里暂时停止对fbxtool工具的维护,现在刚体动画,可以通过Unity中Animator组件制作。
强烈推荐使用LayaUnityPlugin:https://ask.layabox.com/question/4242

要回复问题请先

商务合作
商务合作