大约有 1,240 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
... 提交 1 个回复 Laya_XS 赞同来自: 不建议你这样修改,this.event(Laya.Event.CHANGE);这个是多余的,你的代码生效无非是text重新赋值内容触发了再一次排版。你可以直接在设置了文本type后,直接修改下文本的内容就可以了。 2021-07-29 0 0 ...
来源: Laya_社区 发布时间: 20210729
...全彩老婆的遮罩层 var times=800;//持久时间 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mousemove);//事件绑定,当鼠标移动时触发mousemove事件 //把声明的第一个老婆变成灰色老婆(通过添加灰色的色彩滤镜) var grayscaleMat = [0.3086, 0.6094, 0.0820, 0, 0, ...
来源: Laya_社区 发布时间: 20171018
...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...
来源: Laya3.0_api 发布时间: 20231115
...e install.js` 5897 verbose stack Exit status 1 5897 verbose stack at EventEmitter.<anonymous> (D:\SDK\node.js\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16) 5897 verbose stack at emitTwo (events.js:126:13) 5897 verbose stack at EventEmitter.emit (events.js:214:7...
来源: Laya_社区 发布时间: 20171206
...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
...ge { import laya.display.Graphics; import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.utils.Browser; import laya.webgl.WebGL; import laya.wx.mini.MiniAdpter; public class LayaSample { public var sprite:Sprite = new Sprite(); public function LayaSample() { //...
来源: Laya_社区 发布时间: 20190515
...指点3d射线碰撞和UI点击穿透的问题 (此问题已经无效) event自定义事件的问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 问题状态 最新活动: 2021-06-29 16:10 浏览: 2251 关注: 2 人
来源: Laya_社区 发布时间: 20210629
...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
Laya.Animator 无法通过on监听 ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]); 报错 无法类型"Animator" 上不存在属性"on",现在无法通过on监听了么,请问现在要如何监听动画播放完毕 2019-04-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20190429
...象的属性 y 的值,用于控制 clip 对象的显示位置。 clip.on(Event.CLICK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数...
来源: Laya3.0_api 发布时间: 20231115