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

大约有 2,033 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)

811. zip更新 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

...h(async entry => { if (entry.entryName == 'head.json') { } else { await this.addObject(entry.entryName, entry.getData()) } }) //写head。zip中可能没有head.json,例如只是某个目录,这时候就不要更新root了 try { let buf = zip.getEntry('head.json'); await this._frw.write('head...

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

812. Dialog 关闭效果无效 [ 77%]

...ar CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on...

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

813. 加载的时候动画会卡 [ 77%]

...时候动画会卡 上代码: _pro.startLoad = function() {         this.loadLayer = new Lload();         this.big.addChild(this.loadLayer);         var imgArr = ;         imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpr1.jpg",type:Loade...

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

814. HTMLDivElement中image标签多次赋值报错 [ 76%]

...s://layaair.ldc.layabox.co ... ot%3B style="width:100;height:100" onclick="this.style.display=\'none\';" />\ <span style="color:white;font:24px Arial">paragraph 3</span>'; p.innerHTML = html; p.innerHTML = html; } })(); 附件 : --> 2018-08-08 添加评论 免费帖 --> 分享 微博 ...

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

815. 圆形的头像怎么实现? [ 76%]

... 但是效果是这样的 :     代码 : var point = new Sprite(); this.addChild(point); point.graphics.drawCircle(88, 86, 40, 'transparent');   var tx = new Sprite(); tx.loadImage(PATH + 'tx.jpg'); tx.scale(0.3,0.3); this.addChild(tx); tx.mask = point; 2017-09-28 0 2 分享 微博 QZONE 微...

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

816. 火狐花屏问题 [ 76%]

...ata,alpha);                     }                     _this["onLoaded"](image);                 }                 else {                     WorkerLoader._preLoadFun.call(_this, url);                 }             }; 附件 : --> 2021-06-29...

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

817. 官方的示例贴上来,怎么没反映啊 [ 76%]

...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler)...

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

818. 用ide打包后的图片,Texture显示不出来? [ 76%]

... Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){         aa.gra...

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

819. 缓动-时间线 [ 76%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createApe(); this.createTimerLine(); Laya.stage.on(Event.KEY_DOWN, this, this.keyDown); } createApe() { const Sprite = Laya.Sprite; this.target = new Sprite(); Laya.sta...

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

820. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 76%]

...?   STATICATTR$(TestPageUI,         ['uiView',function(){return this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,...

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