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

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

351. Laya怎么使用雪碧图(spritesheet)? [ 67%]

...、生成图集 (1)下载ShoeBox (2)修改ShoeBox的设置,如下图 FileFormatLoop:\n\t"@ID":{"x":"@x", "y":"@y", "w":"@w", "h":"@h"}, FileFormatOuter:{@loop\n\t"":""\n} (3)把morn/assets里的资源分别拖到BoxSheet的SpriteSheet菜单上生成图集和配置文件 (4)在h5目录下添加与s...

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

352. 发布微信后无法触发mouse_up事件 [ 67%]

...ts.Event):void { var touches: Array<any> = e.touches; if (touches) { for(let i=0;i<touches.length;i++){ let t =touches[i]; let nameIndex =e.touchId + "_" + i; console.log(nameIndex+":"+e.type); } } } 之能收到down和move! 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

353. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 67%]

...a = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild(directionLight); //设置灯光方向 var mat ...

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

354. laya 2.1.1.1 object has in SimpleSingletonList [ 67%]

...个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

355. LayaRender渲染含有多个part的Body存在Bug [ 67%]

... {         LayaRender.body_impl(render, body);          for (var i = 1; i < body.parts.length; i++) {             LayaRender.body(render, body.parts);         }     }    备注:        由于comp是组合body,其本身也是body,LayaRender.Bod...

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

356. 引擎底层报错了?simplesingletonlist:[object Object] [ 66%]

...源代码,修复了。laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++),引擎代码 i没有赋初值,导致 i<n永远为false. 峯 • 2020-01-09 16:49 好吧,我再留意下,我iPhone7p上是没出现过,iPhoneX上出现过

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

357. 物理形状扫描检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 66%]

...ulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆放的模型是使用代码创建的,只是为了方便观察和理解形状扫描检测。 > ![](img/1.png)(图1)

来源: Laya2.0_文档 发布时间: 20210715

358. 物理形状扫描检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 66%]

...ulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆放的模型是使用代码创建的,只是为了方便观察和理解形状扫描检测。 > ![](img/1.png)(图1)

来源: Laya2.0_文档 发布时间: 20210714

359. 物理形状扫描检测(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 66%]

...cene.physicsSimulation.shapeCastAll(sphereCollider, from, to, hitResults); for (i = 0, n = hitResults.length; i 该示例中射线摆放的半透明模型是使用代码创建的,只是为了方便观察和理解形状扫描检测。 > ![](img/1.png)(图1)

来源: Laya2.0_文档 发布时间: 20210715

360. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 66%]

...Child(rankList); // 设置数据项为对应图片的路径 var data = []; for (var i = 0; i < 10; ++i) { data.push("res/1.jpg"); data.push("res/1.jpg"); data.push("res/1.jpg"); data.push("res/1.jpg"); } rankList.array = data; function updateItem(cell, index) { cell.setImg(cell.dataSource); }  ...

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