• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 211 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)

81. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 78%]

...3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...

来源: Laya2.0_文档 发布时间: 20210714

82. 我想在动画播放结束后加一个事件,怎么加? [ 78%]

...***233 赞同来自: geo 监听_ani的完成事件 _ani.on(EVENT.COMPLETE, this, function(){}); 2018-04-28 1 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 谢谢! 2018-05-02 0 0 分享 微博 QZONE 微信 AlexNine 赞同来自: 可以直接在play后面加个回调 function playAni(aniPath...

来源: Laya_社区 发布时间: 20180428

83. 使用3DUI · LayaAir3.0文档 · LAYABOX [ 78%]

...@regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on( Laya.Event.CLICK, this, this.onHurt ); } onHurt(): void { this.bar.value = this.bar.value - 0.1; this.value.y = 35; this.value.visible = true; Main.instance.anima...

来源: Laya3.0_文档 发布时间: 20231129

84. Animation 先clear当前的动画, 然后从浏览器缓存 加载下一个动画会闪一下,这个怎么解决? [ 78%]

...! 别抢小虎 • 2018-05-08 10:51 /// 加载的时候是这样写的 this.anim.loadAtlas(source , null, cacheName); this.anim.scaleX = 1; this.anim.scaleY = 1; this.anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一...

来源: Laya_社区 发布时间: 20180507

85. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 77%]

...  init( box: GunBox, doll_item: DollItem, doll_area: Area ):void { // if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani.play(0, true, doll_item.animation_name);  this._box = box;  this._fly_site.w = this._box._area.w - 20; ...

来源: Laya_社区 发布时间: 20180515

86. Dialog中编辑的动画如何控制? [ 77%]

...同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick() { this.ani1.stop();//停止播放 this...

来源: Laya_社区 发布时间: 20170526

87. 1.7.6版本 刚体动画加载 [ 77%]

...ivate */ __proto._computeFullKeyframeIndices=function(){ var anifullFrames=this._fullFrames=[]; var templet=this._templet; var cacheFrameInterval=this._cacheFrameRateInterval *this._cachePlayRate; //刚体动画时 templet 是AnimationClip对象 没有getAnimationCount方法!!! for (var i=0,iN...

来源: Laya_社区 发布时间: 20170630

88. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 76%]

...的动画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.lo...

来源: Laya_社区 发布时间: 20190117

89. 关于3D动画的ani监听播放完毕后,播放默认动画不行 [ 76%]

关于3D动画的ani监听播放完毕后,播放默认动画不行 this.mAni.on(Laya.Event.COMPLETE,this,this.aniComplete); this.mAni.play("free") aniComplete(type:number):void {    this.mAni.play("ready"); }   播放完指定动画后,这个回调不执行。   附件 : --> pkwang3D.rar 20...

来源: Laya_社区 发布时间: 20171116

90. TimeLineUI不存在的问题 [ 76%]

...d回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变量不存在...

来源: Laya_社区 发布时间: 20190217