大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0082 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
新手入坑请教下各位大神关于LayaMaxUI问题 /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { ex...
来源: Laya_社区 发布时间: 20190402
...掉。 下面是大概的代码:main(): void{ Laya.timer.loop(1000, this, this.loopFunc, [1], false); Laya.timer.loop(500, this, this.loopFunc, [2], false); ... ... Laya.timer.clear(this, loopFunc); Laya.timer.clear(this, loopFunc); } loopFunc(data: any):void{} 2020-02-06 添加评论 免费帖...
来源: Laya_社区 发布时间: 20200206
...umber):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我希望打开b的时候,a是在b的后面遮罩中存在的。这样当我关闭b的时候,a还...
来源: Laya_社区 发布时间: 20190521
ani动画的问题 我做了个ani的动画 this.ani2.loadAnimation("Ani/test.ani"); this.ani2.play(0,false, "test" ); 这样是能够播放的 但是我把动画直接拖到一个UI上,var 为ani1 直接调用 this.ani1.play(0,false, "test");会报 ani not found: Ani/test.ani#test Ani/test.ani ...
来源: Laya_社区 发布时间: 20171011
...nstructor() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知...
来源: Laya_社区 发布时间: 20170319
JS中出现//*no*/this.[类名]…是什么意思? 2015-12-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 此报错通常会有2种情况: a.编译当前.as类的时候没有找...
来源: Laya_社区 发布时间: 20151201
...上添加的loop事件 onKeyDown(){ Laya.KeyBoardManager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) &...
来源: Laya2.0_文档 发布时间: 20210715
...regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(u...
来源: Laya3.0_文档 发布时间: 20240910
...式下 用graphics.drawTexture 平铺图片 图片不显示是什么原因 this.texture1 = Laya.loader.getRes('res/images/bg1.png'); this.texture2 = Laya.loader.getRes('res/images/bg2.png'); var repeatX = 8 ; var repeatCount = Math.ceil(stageW / repeatX); for(let i = 0; i < repeatCount ; i++) { t...
来源: Laya_社区 发布时间: 20180129
... args:Array = null):void 延迟执行。 Parameters caller:* — 执行域(this)。 method:Function — 定时器回调函数。 args:Array (default = null) — 回调参数。 clear()method public function clear(caller:*, method:Function):void 清理定时器。 Parameters caller:* — 执行...
来源: laya_api 发布时间: 20170929