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

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

41. 分享,扩展Laya.Text组件实现简单的富文本 [ 77%]

..., x, y, lineIndex) { var lineWidth = this.underLineWidth; switch (align) { case 'center': x -= lineWidth / 2; break; case 'right': x -= lineWidth; break; case 'left': default: break; } y += this._charSize.height; this._graphics.drawLine(x, y, x + lineWidth, y, this.underColor || this.color, 1); } /*...

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

42. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 76%]

...other = pair.bodyB; } else { other = pair.bodyA; }  switch(other.label) { case "gameover": { home.onGameOver(); } break;  case "coin": { home.gainCoin(1); } break;  case "bullet": { home.gainBullet(1); } break; }  console.log("删除物体:", other.label);  home.Matter.World.remove(home._engine...

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

43. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 76%]

...ction () {             switch (this.style) {                 case style.VERTICAL:                     gradientStyle = VERTICAL_GRADIENT + '>';                     break;                 case style.HORIZONTAL:                     gradientStyle = ...

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

44. 拓展Array数组后报错 [ 75%]

... Laya_XS 赞同来自: 提交问题需要附带一个必现问题的demo case。我们确认下具体问题是由于什么原因引起的,确定了原因后方便修复。辛苦提交个demo case。 2021-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

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

45. GPU引起的卡顿 [ 75%]

...,掉帧非常严重,非常明显的卡顿,这时只有10帧左右。 case1 :WechatIMG2.jpeg case2:   graphic01 and  graphic02 附件 : --> demo-bug.zip 2019-04-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 ...

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

46. 微信小游戏音乐文件下载后不会自动播放 [ 74%]

...自动播放的,你遇到不自动播放的问题,可以提交个demo case。我帮你看下 2020-08-25 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1596759671用户 相关问题 关于微信小游戏关系链的问题 【屏幕适...

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

47. 其他引擎的Demo-Example_05 [ 73%]

...akeObject(current); } function makeObject(t) { var xd; var i; switch (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; private points2:A...

来源: Laya_示例 发布时间: 20251209

48. 其他引擎的Demo-Example_05 [ 73%]

...akeObject(current); } function makeObject(t) { var xd; var i; switch (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; private points2:A...

来源: Laya2.0_示例 发布时间: 20251209

49. [LayaAirIDE3]xcode切入切出声音不播放 [ 73%]

...ya.SoundChannel | undefined;         switch (type) {             case SoundType.Effect:                 oldChannel = this.effectChannels.get(url);                 break;             case SoundType.Dialogue:                 oldChannel = this.dialogueChannels.ge...

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

50. Panel的滚动条皮肤问题 [ 73%]

....stage.addChild(panel); // 0为说明 1为排行 内容部分 switch(num){ case 0: panel.addChild(_this.descriptionContent()); // 说明 内容 break; case 1: panel.addChild(_this.rankingContent()); // 排行榜 break; } }     附件 : --> 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE ...

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