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

大约有 2,610 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0075 秒)

781. 监听按键事件怎么写呀,TS的 [ 71%]

...相关的链接 提交 2 个回复 sfg007 赞同来自: onkeydown(e: Laya.Event): void{           console.log(e.keyCode);             if(e.keyCode==37){//左            this.hero.pos(this.hero.x-100,this.hero.y);                   }else if(e.keyCode==39){/...

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

782. 为什么点击图片会有穿透事件的功能??费解 [ 71%]

...mp自带的组件。 下面的圆形金币是图片,我添加了 on(Laya.Event.MOUSE_DOWN, this,this.mouseHandlerDown,); on(Laya.Event.MOUSE_UP, this,this.mouseHandlerUp,[i]);[/i] [i] [/i] [i]为什么在这个bg.png上面点击,下面的金币也会有点击事件?[/i] 附件 : --> 2018-01-31...

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

783. 如何实现3d遮罩效果? [ 71%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import threeDimen.common.CameraMoveScript; public class D3Base_TargetTexture { private var skinMesh:MeshSprite...

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

784. 骨骼动画播放完了,回调隐藏,回调在哪里 [ 71%]

...Templet(); mFactory.loadAni("NiuXingTianXia/spine/start2.sk"); mFactory.on(Event.COMPLETE, this, function () { mArmature = mFactory.buildArmature(); mArmature.pos(650, 330); mArmature.play(0, false); this.addChild(mArmature); }); 2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

785. laya.ui.ColorPicker [ 71%]

...Classes | Index | Frames No Frames ColorPickerProperties | Methods | Events Packagelaya.uiClasspublic class ColorPickerInheritanceColorPicker UIComponent Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public ...

来源: Laya2.0_api 发布时间: 20190513

786. laya air AS3 自定义事件派发与监听 [ 71%]

...: 1217 关注: 2 人 Zorana • 2018-07-26 11:28 我知道了 我的this.event 的Event 不小心大写了 谢谢~

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

787. 如何监测进入了静默模式?又如何知道唤醒了呢? [ 71%]

... Monica - 知识达人 赞同来自: 浏览器是否失去焦点,监听Event.BLUR和Event.FOCUS即可 不想让timer关闭的话可以看下js原生的settimeout 2017-07-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复...

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

788. 资源加载问题 [ 71%]

...re.js:13173)     at LayaGame.<anonymous> (LayaGame.ts:60)     at EventHandler.__proto.runWith (laya.core.js:724)     at ResInfo.__proto.event (laya.core.js:494)     at LoaderManager.__proto._endLoad (laya.core.js:13377)     at Loader.onLoaded (laya.core.js:13353)     at EventHandle...

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

789. 滤镜问题,有复现demo [ 71%]

...(0, 0, btn.width, btn.height, "#ff00ff"); Laya.stage.addChild(btn); btn.on(Event.MOUSE_DOWN, this, function():void { btn.filters = [new GlowFilter("#ff0f0f")]; } ); btn.on(Event.MOUSE_UP, this, function():void { btn.filters = null; } ); 附件 : --> myLaya_demo1.zip 2018-12-21 添加评论 免费帖...

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

790. Cannot read property 'displayObject' of null [ 71%]

...TypeError: Cannot read property 'props' of undefined Cannot read property 'events' of undefined 发布微信小游戏,报错Cannot read property 'events' of undefined 实例碰撞体报错,Cannot read property 'btSphereShape' of undefined 添加组件PhysicsCollider 时报 Cannot read property '...

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