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

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

2341. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 48%]

...布微信游戏后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIn...

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

2342. 显示对象的mask缩放为0时遮罩效果不生效 [ 48%]

...ge.addChild(testSp); let i = 0; tmpMask.scaleX = i / 3; Laya.stage.on(Laya.Event.CLICK, this, ()=>{ i = (i + 1) % 4; tmpMask.scaleX = i / 3; }); 附件 : --> 2020-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

2343. matter.js mouseconstraint在微信小游戏中无效 [ 48%]

...中mouseConstraint无法拖拽刚体,ide里是正常的。添加Matter.Events.on(mouseConstraint, 'mousedown')测试,微信小游戏里有响应,但e.mouse里的参数无效 chrome调试输出mouse参数正常。  微信小游戏里参数NaN。 2018-05-20 0 0 分享 微博 QZONE 微信 为什...

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

2344. 关于UI子界面的定义方式 [ 48%]

...效果执行完,弹窗无法关闭 LayaAir下TTF字体的使用方式? event自定义事件的问题 Morn UI创建皮肤时的基类能自定义吗?不要View或者Dialog 关于射线碰撞的问题,对于射线的罗辑方式不太了解,懂得进来帮忙看一下!~~~~~~~~~~ 参照技...

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

2345. Native打包的横竖屏问题 [ 48%]

...后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 event自定义事件的问题 关于apk打包动画卡的问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 问题状态 最新活动: 2017-02-12 19:05 浏览: 1677 关注: 2 人 reven1983 • 2017-02-12 ...

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

2346. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 48%]

....json"  at ChildProcess.exithandler (child_process.js:217:12) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:194:7) at maybeClose (internal/child_process.js:899:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) killed: false, code: 1, signal: null, cmd: 'D:...

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

2347. 改变Laya.stage.scaleMode的问题 [ 48%]

... 我会使用下列方式监听视窗改变的事件。Laya.stage.on(Laya.Event.RESIZE,this,this.doResize.bind(this));  并且会在该事件(doResize)中改变 Laya.stage.scaleMode 的值。doResize () { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; }    但是我发现在onResize事件里...

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

2348. laya.d3.js里定义的这个投影矩阵不太对吧 [ 48%]

...帮忙看一下 3D平行光产生的投影,如何修改颜色深浅? event自定义事件的问题 dialog 自定义关闭效果,效果执行完,弹窗无法关闭 请问laya里如何解析json,似乎和AS3的不太一样。 "Background is not defined"怎么会没定义呢???求救 ...

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

2349. List选中项下滚会变 [ 48%]

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

2350. laya.media.SoundChannel [ 48%]

...ds Packagelaya.mediaClasspublic class SoundChannelInheritanceSoundChannel EventDispatcher Object SoundChannel 用来控制程序中的声音。每个声音均分配给一个声道,而且应用程序可以具有混合在一起的多个声道。 SoundChannel 类包含控制声音的播放、暂停...

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