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

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

421. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 94%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...

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

422. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 94%]

...//在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.v...

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

423. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 94%]

...//在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.v...

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

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

425. 滤镜-模糊滤镜 [ 93%]

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

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

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

428. 版本管理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

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

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

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

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