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

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

431. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 94%]

...l 求指导~~       __proto._onDestroy=function(){          (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this));          var physics3D=Laya3D._physics3D;         delete PhysicsComponent._physicObjectsMap[this.id];     ...

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

432. 滤镜-模糊滤镜 [ 94%]

...a.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.gr...

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

433. drawToCanvas真机资源无法释放 [ 93%]

... 2018-12-19 0 5 分享 微博 QZONE 微信 大林 赞同来自: var htmc = this.paper.displayObject.drawToCanvas(this.paper.displayObject.width, this.paper.displayObject.height, 0,0); htmc.destroy(); --------》     __proto.destroy=function(){         this._ctx && this._ctx.destr...

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

434. UI-Tab [ 93%]

...e.bgColor = "#232628"; Stat.show(); Laya.loader.load(skins, Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { let tabA = this.createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB =this. createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors = "#...

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

435. 版本管理swf找同名的Json文件发现找不到 [ 93%]

...    (atlas===void 0)&& (atlas=false);             this['_url']=url=Laya.URL.formatURL(url);             if(atlas)this['_atlasPath']=atlasPath?atlasPath:url.split(".swf")[0]+".json";             this.stop();             //this['_clear'](); ...

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

436. Sprite-容器 [ 93%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.showApe(); } showApe() { const Sprite = Laya.Sprite; const layoutRadius = 150, radianUnit = Math.PI / 2; // 该容器用于装载4张猩猩图片 this.apesCon = new Sprite(); Laya.stage.addChild(this.apesCon); // 添加4...

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

437. 匿名函数编译问题 不替换this [ 93%]

匿名函数编译问题 不替换this 匿名函数编译之后不会替换函数内部的this指针 导致调用错误 附件 : --> 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人...

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

438. 滤镜-颜色滤镜 [ 93%]

...a.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } normalizeApe() { let originalApe = this.createApe(); originalApe.x = (Laya.stage.width - apeTexture.width * 3) / 2; originalApe.y = ...

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

439. 高级应用-闪光 [ 93%]

..., 0, 0.5); var scaleDelta = 0; var scaleValue = 0; Laya.timer.frameLoop(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin(scaleValue * 20) *...

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

440. 物理引擎-布 [ 93%]

...)(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render...

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