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

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

121. 图集动画结束回调有延迟 [ 73%]

图集动画结束回调有延迟 this.ded.addLabel("animOver",9); this.ded.on(Laya.Event.LABEL, this, this.onHitOver);  this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver);  两种方法都会有延迟,不能100%执行 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

122. 性能测试-卡通人物2 [ 73%]

...e(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, this.gameLoop); } createCharacters() { let char; let charSki...

来源: Laya2.0_示例 发布时间: 20240930

123. 模型与动画的导入使用 · LayaAir3.0文档 · LAYABOX [ 73%]

...("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播...

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

124. this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 [ 73%]

this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 this.btClose1.on(Laya.Event.CLICK,null,this.close); 这句代码报错  附件 : --> 2017-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyin...

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

125. 一个没有动作的骨骼动画 替换插图没有用 [ 73%]

...动作的骨骼动画 替换插图没有用     sp(){         this.skebqb = new Laya.Skeleton(SkeTemp.tempbqb, 1);         this.skebqb.play(4, false);         this.skebqb.on(Laya.Event.STOPPED,this,this.changeSkin);         this.owner.addChild(this.skebqb); ...

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

126. 性能测试-卡通人物2 [ 73%]

...Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.i...

来源: Laya_示例 发布时间: 20240930

127. 关于movieClip播放swf的问题 [ 73%]

....play(0,false); emotionSwf.playTo(0, emotionSwf.count, Laya.Handler.create(this,() => { emotionSwf.stop(); emotion.visible = false; })); 如上代码,发现调研play(0,false)后,动画还是一直循环播放,还是emotionSwf.count一直为0,导致播放完成的回调会立即执行,...

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

128. WebXR · LayaAir3.0文档 · LAYABOX [ 73%]

...览器是否支持VR模式,有三种模式immersive-vr\immersive-ar\inline this.changeActionButton.visible = await WebXRExperienceHelper.supportXR("immersive-vr"); immersive-vr就是VR模式的参数,如果是AR模式,参数换成immersive-ar即可。本篇文档只介绍VR模式。 如果检测...

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

129. 抖动效果,震屏效果 [ 72%]

...: var timeLine:TimeLine = new TimeLine(); timeLine.addLabel("turnup",0).to(this,{y:this.y + 20},20,null,0) .addLabel("turndown",0).to(this,{y:this.y - 40},20,null,0) .addLabel("turnup",0).to(this,{y:this.y + 400},20,null,0) .addLabel("turndown",0).to(this,{y:this.y - 40},20,null,0)     .addLabel("...

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

130. 3D骨骼动画卡在某一帧不再执行动作 [ 72%]

...layAction(act:string):void {     var animationclip:Laya.AnimationClip = this.animator.getClip(action);     if(animationclip){        this.animator.play(act);    } }   现象描述:角色正在挂机放技能打怪,当挂机时间过长后,角色卡在动作的某一帧上,不再...

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