[]1.7.6版本 刚体动画加载
rootAnimations.templet = Laya.AnimationTemplet.load(rani);
rootAnimations.player.play(0, 1, loop==true?Number.MAX_VALUE:0);
如上刚体动画(lrani)是否还可以使用 Laya.AnimationTemplet.load 加载,目前加载完成后,如下图注释部分出错。
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++){
要回复问题请先登录
1 个回复
183*****755
赞同来自:
强烈推荐使用LayaUnityPlugin:https://ask.layabox.com/question/4242