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

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

641. dialog.removeSelf is not a function [ 70%]

...laneGameInfoDialogUI;。。。(关闭按钮)this.ui.ibtn_close.on(Laya.Event.CLICK,this,this.ui.close);。。。(点击之后)Uncaught TypeError: dialog.removeSelf is not a function....求助大神谢谢啦~~~ 2017-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

642. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 70%]

...例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) }...

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

643. sprite添加texture后,sprite无法触发点击事件? [ 70%]

...(IMG_RES[this.name])); Laya.stage.addChild(this.item);  this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: ...

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

644. HTMLDivElement中,有<style>标签,第二帧再刷会报错的问题 [ 70%]

...图集加载问题 graphics alpha 问题 关于apk打包动画卡的问题 event自定义事件的问题 问题状态 最新活动: 2017-03-14 21:27 浏览: 997 关注: 2 人

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

645. Laya.loader加载BUG [ 70%]

...y yeyq, 检查是否正在下载,避免网页reload         this.event("progress",0);          var type=this._type;         if (type=="plfb"){             this.parsePLFBData(data);             this.complete(data);         }else if (type=="pl...

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

646. http 请求 once 的 回调参数,如何传递和接收? [ 70%]

...function once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。 Parameters type:String — 事件的类型。  ...

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

647. 获取的ui页面里下on事件无法触发 [ 69%]

...ameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _bitma...

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

648. List选中项下滚会变 [ 69%]

...index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的选中状态设置为false this.sList.setItem(this.selectedIndex,{ select : {label : "服...

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

649. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 69%]

...界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGri...

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

650. 2.x引擎项目升级说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

...Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=&gt; { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯...

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