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

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

101. l龙骨动画内存上升 [ 61%]

...                function play():void {             Laya.timer.loop(5000, this, function():void {                 playDragonBonesAnimation("BigAward/BigAward.sk",0,0,Laya.stage,false);             });         }                  /**播放龙骨...

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

102. Laya.Pool.getItemByClass 闪退 [ 60%]

...e:///Users/heboyce/Desktop/Work/Web/CatchFish/bin/js/GameView.js:83:26) at TimerHandler.__proto.run (file:///Users/heboyce/Desktop/Work/Web/CatchFish/bin/libs/laya.core.js:9624:45) at Timer.__proto._update (file:///Users/heboyce/Desktop/Work/Web/CatchFish/bin/libs/laya.core.js:9357:16) at Stage.__pr...

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

103. 关于裁剪的问题 [ 60%]

...ar.viewport = new laya.maths.Rectangle(0, 0, 0, loginUI.bbbar.height) Game.timer.loop("progress", this, function() { //console.log("loginUI.bar.value = ", loginUI.bar.value); loginUI.bbbar.viewport.width = loginUI.bbbar.viewport.width + 0.2 //console.log("loginUI.bbbar.viewport.width = ", loginUI.bb...

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

104. HttpRequest在网页上和APP上表现不一致 [ 59%]

...表现不一致 let url = "http://10.1.1.123:9090/pgame/s ... 3B%3B Laya.timer.loop(30000, this, ()=>{     let hr = new Laya.HttpRequest();     hr.http.timeout = 3000;     hr.http.ontimeout = function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=...

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

105. Laya.Video内存泄漏问题 [ 59%]

....load(blob_url); Laya.stage.addChild(video); video.play(); v = video; Laya.timer.once(5000, this, function() { v.destroy(); }); }顺便提供一个简单的修复方法: laya.device.js Line 623: 增加以下代码while(this.videoElement.childElementCount) { this.videoElement.firstChild.remove(); ...

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

106. 播放动画(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 59%]

...; //播放攻击状态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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

107. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 59%]

...LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer.frameLoop(1, this, this.updateVideo, [texture2D]); },true); } updateVideo(tempTexture:Laya.Texture2D){ if(this.htmlvideo.video.readyState === this.htmlvideo.video.HAVE_ENOUGH_DATA) { //更新视频纹理 tempTexture.loadI...

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

108. 每过一秒下降一个单位如何写 [ 59%]

...: var sprite:Sprite = new Sprite; sprite.loadImage("图片路径"); Laya.timer.loop(1000,this,function(){ sprite.y += 1; }) 不知道是不是你想要的?   2016-11-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wcj951627735 相...

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

109. 请问怎么制作一个layabox js版本的加载效果 [ 59%]

...eHandler = new Handler(this, null); Laya.stage.addChild(progressBar); Laya.timer.loop(300, this, changeValue); } function changeValue() { if (progressBar.value >= 1){ progressBar.value = 0; Laya.stage.removeSelf(); //将登录页面从内存销毁 // Laya.stage.destroy(); Laya.stage.addChild(new ...

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

110. 播放动画(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 59%]

...; //播放攻击状态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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