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

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

321. Andorid自定义loadingView的logo,怎么做屏幕适配 [ 58%]

...竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null 关于不同语言中使用适配 我想自定义组件 ,引入layaeditor.d.ts直接编译,居然报这个文件有错 微信小游戏适配问题 相对屏幕坐标 问题状态 最新活动: 2017-03-13 16:...

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

322. 不在屏幕内的sprite隐藏是要用户自己处理的吗? [ 58%]

...竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null 使用startDrag进行拖拽右下角超出隐藏 怎么把世界坐标系转为屏幕坐标系? 问题状态 最新活动: 2016-12-05 11:46 浏览: 1464 关注: 2 人 tigerzxd • 2016-12-05 16:43 它的渲染...

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

323. matter中更换texture [ 58%]

...ject colours to show those ending a collision for (var i = 0; i < pairs.length; i++) { var pair = pairs[i]; pair.bodyA.render.fillStyle = '#2A2CB2'; pair.bodyB.render.fillStyle = '#2A2CB2'; pair.bodyB.render.sprite.texture = './comp/block.png'; } } 2017-10-24 添加评论 免费帖 --> 分享 微...

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

324. List表单renderHandler问题 [ 58%]

...y = null, once:Boolean = true):Handler {             if (_pool.length) return _pool.pop().setTo(caller, method, args, once);             return new Handler(caller, method, args, once);         }   2018-07-04 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

325. mac os ts环境配置 [ 58%]

...e '[any, number]' is not assignable to type '[number]'. Types of property 'length' are incompatible. Type '2' is not assignable to type '1'.   通过sudo vim /etc/paths添加path环境变量后还是会报这个错误,mac os该如何配置? 2018-04-19 添加评论 免费帖 --> 分享 微博 QZ...

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

326. Laya2D碰撞问题 [ 58%]

...大小 但是尺寸不对。 for (let i = 0; i < Laya.RigidBody['objs'].length; i++) { const element = Laya.RigidBody['objs'][i]; if(element) if(element.owner){ if(element.owner.getComponent(Laya.CircleCollider)){return} if(element.owner.getComponent(Laya.BoxCollider)){ element['_sysPosToPhysic']...

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

327. 移动端h5项目如何获取多点触摸的坐标 [ 58%]

... touches 属性 let touches = e.touches;   if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX);   Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } 2019-09-25 0 0 分享 微博 QZONE 微信 1...

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

328. loop 我想在回调里暂停,然后在开启 [ 58%]

...= 0;  Laya.timer.loop( 500, this, function () {       i = i < (arr.length - 1) * 6 ? i + 1 : 0;       this.noticeList.scrollBar.value = i * 5        if (i % 6 == 0) {         console.log("在这里停止", i)        }       else{ console.log("在这里开始", i)      ...

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

329. 龙骨动画转换报错 [ 57%]

...动画模版,里面放了几张png作为帧,但是在ide里面转换却报length失败了,请问为什么呢?   附件 : --> laya.zip 2017-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达...

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

330. UI 组件中list自动滚动到list底部或者顶部 [ 57%]

....prototype.ScrollToBottom=function(caller,callback){ var page=this.msgList.length - 8; if(page < 0)page=0; page +=1; if(caller) this.list.tweenTo(page,0,Handler.create(caller,callback)); else this.list.tweenTo(page,0); } 2019-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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