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

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

221. 创建树Tree 该怎么回调mouseHandler 形参该传什么 [ 58%]

...his,onTreeHandler); function onTreeHandler(e,index) {    if(e.type==Laya.Event.CLICK)   {   } } 2017-06-26 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z298959 相关问题 骨骼动画播放完后的回调时间 ios原生回调问...

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

222. list的selectHandler属性连续点击同一个item不能重复接收事件 [ 58%]

...         this.changeSelectStatus();             this.event(/*laya.events.Event.CHANGE*/"change");             this.selectHandler && this.selectHandler.runWith(value);             this.startIndex=this._startIndex;         //}     }); 20...

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

223. 分享个代码 实现 Mesh 3D 点击 [ 58%]

...eshCollider);     webglRaycaster.SetMeshCastLayer(node);     node.on(Event.CLICK,this, onNodeClickedHandler); 4,方法:   private function onNodeClickedHandler(source:Sprite3D):void    {      if (!source) return;      trace(source.name);   } 附件 : --> WebglRaycaster.zip 2017-...

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

224. 父容器为何不响应鼠标事件 [ 58%]

...Laya.stage.addChild(father) father.x = 100; father.y = 100; father.on(Laya.Event.CLICK,this,this.onTestClick) 然而点击后onTestClick()根本不响应,如果改成son.on(...)倒是可以,该怎么解决呢? 2018-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

225. PlatformInterface就是平台相关支付吗? [ 58%]

...据平台下载 遍历相关问题 Laya.URL.basePath 相关 有没有Laya.Event.CLICK的相关说明文档 请问Laya的坐标系是什么样子的 2D的 怎么没有看到有相关的介绍 layawebview相关 求HTTP相关的文档或者例子谢谢了 问题状态 最新活动: 2018-04-19 11:28 浏...

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

226. js飞机大战报错 请大神看看 [ 57%]

...按钮点击事件 点击后暂停游戏         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         // 初始化UI 显示         this.reset();     } ...     "Cannot read property 'on' of undefined" "TypeError: Cannot read property 'on' of undefined     at new ...

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

227. 有没有类似白鹭的触发点击事件的解决办法?模拟鼠标点击 [ 57%]

...拟鼠标点击 window.egret.MainContext.instance.stage.loginBtn.dispatchEvent(new egret.Event(egret.TouchEvent.TOUCH_TAP)); 这段代码的意思就是 调用代码主动去模拟鼠标点击 登录按钮,laya  js版有没有这样的功能?     或者这么理解: jquery里的$(selector)....

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

228. sprite不能设置点击区域 [ 57%]

...aya.Sprite(); sp.graphics.drawPie(0, 0, 300, 0, 90, "#00ffff"); sp.on(Laya.Event.CLICK, this, this.aa) sp.mouseEnabled = true; // 设置点击区域没有作用 var hitArea = new Laya.HitArea(); hitArea.unhit.drawPie(0, 0, 150, 0, 90, "#00ffff"); sp.hitArea = hitArea; 我想要实现的效果就是...

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

229. 绘制形状时事件不触发 [ 57%]

...e.graphics.drawCircle(x, y, r1, color1, color1, 0);     function on_down(event) {         console.log("_____ kbRing2\n");     } } function laya_test() {     Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL);     var ring = new myRing(600, 300, 18, "#087729", 40,...

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

230. hitArea怎么用 [ 57%]

...136)         container.hitArea = bg2Sprite;          container.on(Event.CLICK,this,deskClick); 请问下 我这段代码设置热区 为什么没反应 而且现在看HitArea这个类也没有 api里面没找到 都不知道怎么用了,http://ask.layabox.com/question/2676  这个方法无...

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