大约有 2,541 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1918) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...名btn1,但不知道怎么调用,强行在Main.js里面写入 btn1.on(Event.CLICK, this, onBtnClick); function onBtnClick() { alert('222'); } btn1 is not defined 按教程写脚本,实在找不到地方写,请问有没有类似教程呢。 问题3)我在Scenes 新建了2个view,一个是...
来源: Laya_社区 发布时间: 20181027
... { GameStart.super(this); Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test); } function Test(e){ console.log(e.keycode); } 按下按键后一直输出undefined,在入口类里面却能输出对应按键编号,是...
来源: Laya_社区 发布时间: 20180208
...tils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.nam...
来源: Laya_社区 发布时间: 20171222
...宽高是多少,Laya.stage.scaleMode使用哪种模式,Laya.stage.on(Event.RESIZE, this, onResize);如何处理比例问题? 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 ...
来源: Laya_社区 发布时间: 20180313
...ing progress : " + pro); }, null, false), Laya.Scene); Laya.loader.on(Event.ERROR, this, function (err) { if (debug) console.log("Loading error : " + err); }); } return LayaAir3D; } ()); LayaAir3D(); Monica • 2018-03-21 11:39 我这边写的例子正常 jinfawu • 2018-03-21 12:41 ...
来源: Laya_社区 发布时间: 20180321
...agArea = '0,0,300,600'; dialog.show(); } onEnable() { this.btnShow.on(Laya.Event.CLICK,this,this.onBtnShowClick); } onDisable() { } } 是不是以为到了这一步就结束了,别着急,还有关键的一个步骤,就是把helloworld.js和我们的场景关联起来。 最后一步:拖拽he...
来源: Laya_社区 发布时间: 20190117
...a设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, fitDOM); let viewIns = this; function goGameWorld() { videoElmt.pause(); Laya.stage.removeChild(reference); Laya.Browser.removeElement(videoElmt); // Laya.Browser.document.body.removeChild(videoElmt); Laya...
来源: Laya_社区 发布时间: 20180802
...码,改写的,点击2次场景就会报错。: onStageClick(e: Laya.Event): void { //停止事件冒泡,提高性能,当然也可以不要 e.stopPropagation(); //舞台被点击后,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this....
来源: Laya_社区 发布时间: 20181128
... false=不循环 clipPath=动画资源路径 this.iceMonsterAni.once(Laya.Event.COMPLETE, this, () => { this.iceMonsterAni.visible = false; }); } } 你看看。 LayaAir小牛 • 2025-12-22 15:41 @ZmySir:可以把项目打包发一个demo吗 ZmySir • 2025-12-22 16:18 demo怎么发给你? Laya...
来源: Laya_社区 发布时间: 20251211
...ackagelaya.d3.core.renderClasspublic class BaseRenderInheritanceBaseRender EventDispatcher ObjectImplements laya.resource.ISingletonElement, laya.d3.core.scene.IOctreeObjectSubclasses MeshRenderer, PixelLineRenderer, ShurikenParticleRenderer, TerrainRender, TrailRenderer Render 类用于渲染器的...
来源: Laya2.0_api 发布时间: 20190513