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

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

811. 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

812. zip更新 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...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

813. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 76%]

...取图集内资源报错。 MsgMgr.instance.init(); Laya.timer.once(1000,this,function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new ...

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

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_示例 发布时间: 20251209

820. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 76%]

...碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错   new this.box2d   box2d 是undefined 请问这里的 this 指向是 ??   contact.getHitInfo = function () {                 var manifold = new this.box2d.b2WorldManifold();                 this.GetWorldManifold(ma...

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