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

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

1011. 使用3D UI · LayaAir3.4 · 引擎文档 · LAYABOX [ 87%]

...@regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animato...

来源: Laya3.0_文档 发布时间: 20251010

1012. DrawPie例子中无法显示遮罩区域 [ 87%]

...ld(ape); ape.loadImage("../../res/apes/monkey3.png"); //创建遮罩对象 this.cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawPie(80,80,50, 0, 360,"#ff0000"); this.cMask.pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, ...

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

1013. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 87%]

...r WID = 375, HEI = 85; function RankListItem() { RankListItem.__super.call(this); this.size(WID, HEI); this.img = new Laya.Image(); this.addChild(this.img); this.setImg = function (src) { this.img.skin = src; } } Laya.class(RankListItem, "RankListItem", Laya.Box); //rankList var rankList = new Laya....

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

1014. TiledMap.getLayerObject [ 87%]

...bject tiledMap 中 设置对象 坐标未 96,128 为何在laya 中读取 this.role = tMap.getLayerObject("role","player"); 后 role的坐标会是112,112   Laya.init(3200,3200); //创建TiledMap实例 var tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya...

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

1015. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 87%]

新手入坑请教下各位大神关于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

1016. Timer.clear清理同caller同method的多个loop [ 87%]

...掉。   下面是大概的代码: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

1017. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 87%]

...umber):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我希望打开b的时候,a是在b的后面遮罩中存在的。这样当我关闭b的时候,a还...

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

1018. ani动画的问题 [ 87%]

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

1019. 为什么hitTestPoint始终是false? [ 87%]

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

1020. JS中出现//*no*/this.[类名]…是什么意思? [ 87%]

JS中出现//*no*/this.[类名]…是什么意思? 2015-12-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自:   此报错通常会有2种情况: a.编译当前.as类的时候没有找...

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